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

Error: statfs /tmp/secret: no such file or directory #8302

Closed
winkeesail opened this issue Nov 11, 2020 · 5 comments
Closed

Error: statfs /tmp/secret: no such file or directory #8302

winkeesail opened this issue Nov 11, 2020 · 5 comments
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@winkeesail
Copy link

winkeesail commented Nov 11, 2020

when I mount a local file on host machine to the container, this error pops out.
my commands are:

podman pull mysql:5.7
podman run --name ms5.7 -v $HOME/my_password:/tmp/my_password -e MYSQL_ROOT_PASSWORD_FILE=/tmp/my_password -d mysql:5.7

errors:

Error: statfs /Users/winkee/my_password: no such file or directory

Environment versions:

  • Mac OS X, Mojave, 10.14.6
  • podman version

Client:
Version: 2.1.1
API Version: 2.0.0
Go Version: go1.15.2
Built: Sat Sep 26 09:07:39 2020
OS/Arch: darwin/amd64

Server:
Version: 2.1.1
API Version: 2.0.0
Go Version: go1.15.2
Built: Thu Jan 1 08:00:00 1970
OS/Arch: linux/amd64

Environment setups

brew cask install multipass
multipass launch -c 2 -d 10G -m 2G -n podman
<
...
setup podman service in Ubuntu VM
...
>
brew install podman
podman system connection add ubuntu ...
podman info
...

Explanation:
I launched a ubuntu instance in my virtual machine, and use podman client (on Mac OS) to connect to the podman service in ubuntu.

After that, I can use podman just like I use docker on Mac OS.

But when I test pulling a mysql image and try to mount a file to be used while creating the container instance, this error pops out and stop me from proceeding.

I tested the exact same command for docker, and it works perfectly, so I guess there is a potential issue with podman?

@Luap99
Copy link
Member

Luap99 commented Nov 11, 2020

Volumes over remote are not supported. The podman remote client will try to bind mount the file on the server side.

see issue #8016

@Luap99 Luap99 closed this as completed Nov 11, 2020
@winkeesail
Copy link
Author

winkeesail commented Nov 11, 2020

Thanks for the info. But are there workarounds or solutions if I need to mount files on my host machine?
Ok, I guess a workaround would be to mount local to a dir/file on the server.

@Luap99
Copy link
Member

Luap99 commented Nov 11, 2020

Well, you can copy it to your server and then mount it.

@jsirianni
Copy link

jsirianni commented Apr 19, 2022

Well, you can copy it to your server and then mount it.

This is not a great solution for development workflows. When coming from Docker, this is a large regression.

@Luap99
Copy link
Member

Luap99 commented Apr 20, 2022

docker does not mount via an actual remote connection either.

Docker desktop does provide support to mount directories in the VM. If you are looking for this we have the same with podman machine -v ..., see the linked issue. Also the home directory should be mounted as default wirh v4.1, #13849

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 20, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

3 participants