Skip to content

Instantly share code, notes, and snippets.

@ivarprudnikov
Created February 16, 2022 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivarprudnikov/644c29729597162860252eca292e3bb5 to your computer and use it in GitHub Desktop.
Save ivarprudnikov/644c29729597162860252eca292e3bb5 to your computer and use it in GitHub Desktop.
Run and inspect a Docker container
$ docker exec -it testcontainer /bin/bash
[root@18dbc0919c88 /]#
$ 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