Tuesday, January 15, 2019

Docker quick note

How to access container outside..

# docker run -p 8080:8080 --name myjenkins --detach jenkins

-p : expose port
--name: custom name of container which is going to run
--detach: it will run in background


How to get into running container

# docker exec -it myjenkins /bin/bash