% docker-volumes # Create a volume sudo docker volume create # List all volumes sudo docker volume ls # Remove volume sudo docker volume rm $ volume: sudo docker volume ls --format "{{.Name}}" | awk '{print $1}' % docker-network # Create new network docker network create # List the networks sudo docker network ls % docker # List the running containers sudo docker ps # Stop a running container through SIGTERM sudo docker stop # Stop a running container through SIGKILL sudo docker kill # Print the last lines of a container's logs docker logs --tail 100 | less # Print the last lines of a container's logs and following its logs docker logs --tail 100 -f $ container_id: sudo docker ps --format "{{.ID}}" | awk '{print $1}'