here is a few docker commands:
- To list the current images:
- $ docker images
- To build a docker image from a dockerfile in current director:
- $ docker build -t docker-test-cont .
- To run an image on your local machine:
- $ docker run docker-test-cont
- To tag and push the image to remote repository:
- Tag the current image
- $ docker tag 7d9495d0373 dockeraccount/docker-test-cont:latest
- and Push it to remote repo:
- docker push dockeraccount/docker-test-cont
- To Remove an image you can use either ID or Name:
- docker rmi -f 7d9495d03763
- docker rmi -f docker-test-cont
- To pull an image from Repository:
- docker pull yourusername/docker-test-cont
- TBC
No comments:
Post a Comment