You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Intro

Basic docker commands page has been introduced to help docker newcomers to start working with docker with few basic commands.

Login

docker login -u <USER_NAME> -p <USER_PASSWORD> <REPOSITORY_URL>

Working with images

Pull image from official public docker repository

docker pull <IMAGE>:<TAG>

Pull image from specific repository

docker pull <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>

Tagging image with specific tag or version

docker tag <IMAGE>:<TAG> <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>

Push image to specific repository

docker push <REPOSITORY_KEY>.artifactory.shared.tds.CUSTOMERX.com/<IMAGE>:<TAG>

Images list

docker images

Image remove

docker rm <IMAGE_ID>

Working with containers

Containers list

docker container ls --all
  • No labels