Docker – Some Commands

To run the docker with host port matching and with mounts #docker run -tiP -p 0.0.0.0:: -v : To get to console of running container #docker exec -ti /bin/bash To get the host ports which docker ports are bind to- check DOCKER chain Ref: https://docs.docker.com/engine/reference/commandline/inspect/ [root@ip-172-31-35-29 ~]# docker inspect --format='{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} … Continue reading Docker – Some Commands

Advertisements