Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker compose recreate

docker-compose ps # lists all services (id, name)
docker-compose stop <id/name> #this will stop only the selected container
docker-compose rm <id/name> # this will remove the docker container permanently 
docker-compose up # builds/rebuilds all not already built container 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #docker #compose #recreate
ADD COMMENT
Topic
Name
9+2 =