-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Docker container with attached volume won't start after reboot #12776
Copy link
Copy link
Closed
Labels
Description
Hello,
I encounter some problems with volumes after rebooting.
I start a container with
sudo docker run -ti \
-e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-v ~/.Xauthority:/home/wine/.Xauthority \
-v /dev/snd:/dev/snd --privileged \
-v /run/user/`id -u`/pulse/native:/run/user/`id -u`/pulse/native \
--net=host \
webanck/docker-wine-steam
Then I stop the xxxx container and am perfectly able to restart it doing:
sudo docker start xxxx && sudo docker attach xxxx
But when I reboot my computer and try the same as above to restart my container I always get the same error:
Error response from daemon: Cannot start container xxxx: setup mount namespace mounting /run/user/1001/pulse/native into /var/lib/docker/aufs/mnt/9b2641d21b7895bded8b0783d3e69aae75f167412f8a4e6f69308d54590111bc/run/user/1001/pulse/native not a directory
FATA[0000] Error: failed to start one or more containers
Any idea of what I am doing wrong? Or is it a problem with docker itself?
PS: for more information on the image I am using, see my repository docker-wine-steam.
Reactions are currently unavailable