Usefull Docker Commands
Docker commands usually used
Start Docker
sudo service docker start
Stop Docker
sudo service docker stop
Check container logs
docker logs (container_name)
Delete docker container
docker rm -f (container_id_or_name)
Stop all containers
docker stop $(docker ps -a -q)
Remove all containers
docker rm $(docker ps -a -q)
Bash container access
docker exec -it {container} bash
Docker Compose
Start docker compose without container logs
docker-compose up -d
Recreating Containers
docker-compose up --force-recreate -d
Clean docker after remove an image
docker-compose up -d --remove-orphans
Follow X/Twitter.