kl0wn Posted August 14, 2017 Share Posted August 14, 2017 Howdy, I have scripts setup to reboot my docker containers nightly be running 'docker restart <container id goes here>'. I noticed that this wasn't occurring nightly so I dug a little deeper. I compared my scripts to the Container ID's and found that they had changed. I saw some orphaned images, and thought it was a fluke and that's what caused the container ID to change. However, I just checked again and found that my Container ID's have again changed with no orphaned images in site. Am I wrong to assume that the Container ID's should remain the same or is something wonky going on? NOTE: I also have my Docker's set to auto-update at 6AM every day. Thanks Quote Link to comment
CHBMB Posted August 14, 2017 Share Posted August 14, 2017 Why not use the name rather than the container ID? Quote Link to comment
tjb_altf4 Posted August 15, 2017 Share Posted August 15, 2017 Container ID will change on every update from what I've seen. Quote Link to comment
CHBMB Posted August 15, 2017 Share Posted August 15, 2017 Yes they will, which is why I'd use the name.Sent from my LG-H815 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.