Podman fails to start container when machine wakes up from sleep #19934
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
machine
remote
Problem is in podman-remote
stale-issue
Issue Description
On my Macbook Pro M1 (2020), trying to start a container that has already been created with volume mounts fails sometimes. This usually happens after rebooting the machine, but the most recent one is from when it woke up from sleep.
A workaround is to remove the built images, restart podman machine and rebuild the images.
Steps to reproduce the issue
Steps to reproduce the issue
To reproduce the issue, execute podman run with a volume mount, wait for the machine to go to sleep, wake it up and try to start the container.
Note: It does not always throw the error, but rest assured, it does sometimes
podman run -dt --name schooldesk-db -e MYSQL_ROOT_PASSWORD=king -e MYSQL_PASSWORD=king -e MYSQL_USER=king -e MYSQL_DATABASE=schooldesk --userns=keep-id -v "/Users/king/Podman/Volumes/schooldesk-tests:/var/lib/mysql" -p 3307:3306 mysql
podman start schooldesk-db
Describe the results you received
Error: unable to start container "6ac89c1e74e2000113d27c56dd711ee5c74abd478a7543b1b81176b6ae2d3cc7": crun: error stat'ing file `/Users/king/Podman/Volumes/schooldesk`: No such file or directory: OCI runtime attempted to invoke a command that was not found
Describe the results you expected
Describe the results you expected
The container should be started because the volume actually exists.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: