docker-whale-home-logo

A short little list of commands I have found myself using for Docker.

To console into a running container

docker exec -it d799b74e3289 /bin/bash

To view containers

docker ps

docker ps -a (view all containers)

To build a new image

docker build -it -p 80:80 imagename:0.1 (where 0.1 is the tag)

Display images

docker images

Remove images

docker rmi xxxxxxx (xxxxxxx is the image name)



Leave a reply