I am currently running the official ghost Docker image, and use this image to build several containers.
If I want to update the my Docker image, I simply just use the command:
docker pull ghost
docker restart oldcontainer
Does it work ?
I am currently running the official ghost Docker image, and use this image to build several containers.
If I want to update the my Docker image, I simply just use the command:
docker pull ghost
docker restart oldcontainer
Does it work ?
No. Updating an image will not affect the images that were built from that image, and certainly not affect the already-running containers that were created from this image.
One possible workflow would be sth. like this:
A docker restart does a docker stop (or docker kill if the stop times out), which puts a container in an exit status, followed by a docker start, which starts the same container.
The fact that the image might have changed isn't detected at all in that process.
Removing and doing a full docker run with all the right parameter would pick up on an image change. See "How to upgrade docker container after its image changed"