Docker commands with no particular order
docker image prune
docker network prune
docker system prune --volumes
docker system prune
Add -a to prune everything
–name container name -e environmental variables-p ports (local-port:remote-port)-v volumes (local/folder:remote/folder)–restart (always, never, unless-stopped, on-failure)docker exec -it <container-name or id> <command>
docker restart $(docker ps -q)
With the compose running (docker-compose up):
docker run <container-name-in-docker-compose> <command>
This command runs a new docker container to execute the command
–rm run the container and delete it after executionTo execute a command inside a running container:
docker-compose exec <container-name> <command>
-i interactive-t tty allocation