I need to reboot on of our Ubuntu containers once a week, but from the container’s terminal I can’t do it.
shutdown: Unable to shutdown system
How can I reboot it?
Also, re-deploy would be OK, but is it possible to configure auto-redeploy on Docker Cloud?
Containers are not VMs, they are effectively processes (in one way of thinking). Thus, an OS restart within a container doesn’t make sense, and is therefore not possible. One kills, stops, or restarts containers, e.g.
docker stop CONTAINER
docker kill CONTAINER
docker restart CONTAINER
In the context of your question, and depending on the specifics of your container, it probably makes the most sense to restart the container in question.
@bryceryan thanks for the explanation.