jbuszkie Posted July 12, 2017 Share Posted July 12, 2017 I needed to reboot my machine yesterday so I stopped all my dockers and then tried to stop the array. It got stuck trying to umount the drives. It was stuck trying to unmount the drive that my docker image was on. I couldn't find any browser or telnet session that was using or pointing to any docker image files. I ended up having to force a reboot from the console. Luckily I was able to restart my dockers on a reboot with no issues. I couldn't find any info in the FAQ.. So what is the proper way to shutdown/reboot when using dockers? Do I need to manually stop the dockers and then stop the docker service? Or if I stop the array will it do everything for me? This will also come into play in a power failure scenario. Will the system shutdown cleanly when the battery gets low. Thanks, Jim Quote Link to comment
Squid Posted July 12, 2017 Share Posted July 12, 2017 You don't need to stop the service before rebooting / shutting down / power failure. There are some circumstances however where any application can hang the umount process. Most commonly is having a SSH session with the current directory set to something within /mnt/ Quote Link to comment
jbuszkie Posted July 12, 2017 Author Share Posted July 12, 2017 (edited) Thanks, Squid! Is there a post somewhere that outlines how to find the offending process that's keeping the drive from being unmounted? I tried the the lsof command but I couldn't figure out what I needed to kill. I'm pretty sure it was something accessing something that was mounted from the docker image. Jim Edited July 12, 2017 by jbuszkie Quote Link to comment
Squid Posted July 12, 2017 Share Posted July 12, 2017 Completely off the top of my head while mobile:If /var/lib/docker/containers still exists then umount /var/lib/docker. All of the containers would have already been stoppedSent from my LG-D852 using Tapatalk Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.