Docker basic commands

docker run [-d runs on background deamon, -p expose_port:docker_port , –name ]
docker start
docker stop
docker ps [-a include stopped containers]
docker rm
docker build -t
docker push


docker run -p 2181:2181 -p 9092:9092 –env ADVERTISED_HOST=localhost –env ADVERTISED_PORT=9092 spotify/kafka
docker start kafka
docker stop kafka
docker rm kafka
docker build -t vlknbcr/test . #. represents I am in the folder where docker file it is.
docker push vlknbcr/test


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s