Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go.mod: downgrade pkg/sftp to v1.12.0 (fix nerdctl run -v hang up) #203

Merged
merged 1 commit into from
Sep 4, 2021

Conversation

AkihiroSuda
Copy link
Member

ref: lima-vm/sshocker#14 , pkg/sftp#466

Fix #187 (Freezing when trying to map a volume)
Fix containerd/nerdctl#338 (nerdctl run with -v option got stuck without any explicit errors)

The issue #187 was regression in Lima v0.6.1 (commit fccd9e0)

ref: lima-vm/sshocker PR 14 , pkg/sftp issue 466

Fix issue 187, containerd/nerdctl issue 338

The issue 187 was regression in Lima v0.6.1
(commit fccd9e0)

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda
Copy link
Member Author

I'll release v0.6.3 right after merging this

@jandubois
Copy link
Member

I'm testing using /tmp/lima and it is has weird permissions:

$ ls -ld /tmp/lima
drwxr-xr-x  3 jan  wheel  96  4 Sep 14:42 /tmp/lima
$ lima ls -ld /tmp/lima
drwxr-xr-x 1 root root 96 Sep  4 21:42 /tmp/lima

I can create files manually inside the instance with touch and mkdir, but they end up being owned by root:

jan@lima-default:/tmp/lima$ mkdir foo
jan@lima-default:/tmp/lima$ touch bar
jan@lima-default:/tmp/lima$ ls -l
total 8
-rw-r--r-- 1 root root   0 Sep  4 21:51 bar
drwxr-xr-x 1 root root  64 Sep  4 21:51 foo
drwxr-xr-x 1 root root 288 Sep  4 21:49 xxx

But when I try to write to the directory from nerdctl it fails:

jan@lima-default:/tmp/lima$ nerdctl run -v /tmp/lima:/mnt screen-static-coreos:latest cp -v /home/core/screen-4.8.0/screen /mnt
cp: cannot stat '/mnt/screen': Permission denied

@AkihiroSuda
Copy link
Member Author

Is that new in this PR?

@jandubois
Copy link
Member

Is that new in this PR?

No, looks like it has been like this before. But it still means that you can't write to mounted volumes from the container.

It is progress though because the container runs at all; before I wouldn't even get the permission error; it would just hang on startup.

@AkihiroSuda
Copy link
Member Author

Could you open a separate issue after merging this

@jandubois
Copy link
Member

Could you open a separate issue after merging this

Sure

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jandubois jandubois merged commit efc2a6e into lima-vm:master Sep 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freezing when trying to map a volume nerdctl run with -v option got stuck without any explicit errors
2 participants