Skip to content

Instantly share code, notes, and snippets.

@HarshitRuwali
Last active October 3, 2020 21:34
Show Gist options
  • Save HarshitRuwali/7d0903eecce8a11d2004b14420154097 to your computer and use it in GitHub Desktop.
Save HarshitRuwali/7d0903eecce8a11d2004b14420154097 to your computer and use it in GitHub Desktop.
Run the docker image interactively in shell.

Just create interactive container. No start but named for future reference.

Use your own image.

docker create -it --name new-container <image>

Now start it.

docker start new-container

Now attach bash session.

docker exec -it new-container /bin/bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment