Created
February 16, 2022 12:53
-
-
Save ivarprudnikov/644c29729597162860252eca292e3bb5 to your computer and use it in GitHub Desktop.
Run and inspect a Docker container
This file contains 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 exec -it testcontainer /bin/bash | |
[root@18dbc0919c88 /]# |
This file contains 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 pull imagename:imagetag | |
$ docker run --rm --entrypoint /bin/bash --name testcontainer imagename:imagetag -c 'sleep infinity' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment