Docker command cheatsheet

docker to start a container from image

$ sudo docker run -itd --name jenkins --publish 8080:8080 --publish 50000:50000 jenkins

docker to get inside the container

$ sudo docker exec -it jenkins bash

Leave a Reply

Your email address will not be published. Required fields are marked *