Last active
June 4, 2023 13:40
-
-
Save debabrata100/189909fd89c3dbd4fd62b75c79bc6b7a to your computer and use it in GitHub Desktop.
Common Docker commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker | |
- $ docker image ls | |
- $ docker build -t hello-docker . | |
- $ docker run hello-docker | |
- $ docker login -u debabrata100 | |
- $ docker tag hello-docker debabrata100/myfirstapp | |
- $ docker push debabrata100/myfirstapp | |
- $ docker rm [CONTAINER_ID] | |
- $ docker rmi [IMAGE_ID] | |
- $ docker ps -a | |
- $ tag | |
- $ docker run -d ubuntu | |
- $ docker exec <container id> ls | |
- $ docker run -it ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment