Last active
February 6, 2020 17:02
-
-
Save ayoubjamouhi/ac365726bad8a1b6b48a0230e2b9c48d to your computer and use it in GitHub Desktop.
docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get in this machine bash : docker exec -it <containerID or Name> /bin/bash | |
remove all containers and images at once : docker container rm $(docker container ls -aq) --force && docker rmi $(docker images -a -q) | |
reload nginx : docker container exec <containerID or Name> nginx -s reload | |
reload nginx in ubuntu : /etc/init.d/nginx reload | |
docker-compose exec app composer install | |
sudo docker container rm $(sudo docker container ls -aq) --force && sudo docker rmi $(sudo docker images -a -q) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment