Skip to content

Instantly share code, notes, and snippets.

@sandeepkv93
Created January 16, 2019 06:24
Show Gist options
  • Save sandeepkv93/358dcc3faf41cb36a0cdc3f36b974b73 to your computer and use it in GitHub Desktop.
Save sandeepkv93/358dcc3faf41cb36a0cdc3f36b974b73 to your computer and use it in GitHub Desktop.

Pull a docker image

docker pull <image_name>

Run a docker image with a start command

docker run -it <image_id> commad
example: docker run -it <image_id> /bin/bash

Start a container

docker start <container_id>

Attach a running container

docker attach <container_id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment