Docker_Commands - sandeepvalapi/DevOps GitHub Wiki

##Docker Commands##

Source : https://hub.docker.com/

See containers that are running: docker ps -a

Pull from docker or local (If not available in local then it will pull) docker run ubuntu

detached-running contineously docker run -it -d ubuntu

start and use docker container docker exec -it <container_id> bash

List down all images in docker docker images

Remove unused container docker rm <container_id>

Commit to docker repo: docker commit <container_id> username/imagename

Use it for authenticating with docker docker login

docker push docker push username/imagename

Remove all docker images at ones