Docker commands

$ sudo docker build Dockerfile

$ sudo docker start -d

List of images

$ sudo docker images

Run docker container by ID

$sudo docker run ID

Get dockers ip

$ docker-machine ip

$ sudo iptables -L -n

Delete old containers

$ docker rmi $(docker images -q -f dangling=true)

Delete all images

docker rmi $(docker images -q)

Docker-composer

$ docker-compose build

$ docker-compose up -d

Leave a Reply

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