Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 928 Bytes

docker.org_archive

File metadata and controls

37 lines (21 loc) · 928 Bytes

Archived entries from file /home/fenton/projects/docs-DIR/documentation/docker.org

Useful commands

Type ‘docker’ before each of the commands below

info
search <search-string>search for docker images
pull <img-name>pull down a docker image
imageslist docker images

A docker image can be ‘running’ but also ‘stopped’.

To run a docker image named, ‘jenkins’ with an interactive shell

docker run -i -t jenkins /bin/bash

To detach the tty without exiting the shell, use the escape sequence Ctrl-p + Ctrl-q. The container will continue to exist in a stopped state once exited.

ps -alist all contains, stopped or running

docker ps