Skip to content

Instantly share code, notes, and snippets.

@ivarprudnikov
Created February 16, 2022 12:53
Show Gist options
  • 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