How do I restart a Docker container/image/machine? -


i'm trying teach myself docker , using docker-compose.yml play around images , compose file. i've got wordpress image , running using docker-compose.yml -d via tutorial here... https://docs.docker.com/compose/wordpress/), make changes compose file , docker-compose.yml -d again can't access changes again , have delete images/containers/docker machine's changes work.

what doing wrong, what's process restart/delete minimum amount see docker-compose.yml changes can play around docker-compose.yml?

docker-compose stop stop stack docker-compose start start stack

both above not remove container, rather shutdown , start them again, without loses, on container filesystem, not volumes

docker-compose down remove containers of services , anonymous volumes assigned them.

be aware, not changes in docker-compose file can applied using start/stop, rather of time, have down/up. things volumes/ports cannot hot-applied this.


Comments