Main Docker Commands
Pull an image or a repository from a registry
docker pull redisDisplaying Docker Images
AsafsMacBook:~ aahmadov$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest 46331d942d63 2 months ago 9.14kB
redis latest 23d787aaa419 2 months ago 107MB
docker/getting-started latest adfdb308d623 3 months ago 27.4MBRun a command in a new container
AsafsMacBook:~ aahmadov$ docker run redis
1:C 28 May 2022 04:26:22.809 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 28 May 2022 04:26:22.809 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 28 May 2022 04:26:22.809 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
1:M 28 May 2022 04:26:22.809 * monotonic clock: POSIX clock_gettime
1:M 28 May 2022 04:26:22.811 * Running mode=standalone, port=6379.
1:M 28 May 2022 04:26:22.811 # Server initialized
1:M 28 May 2022 04:26:22.812 * Ready to accept connectionsList containers
Stop and Start container
Docker detached mode
Download and run different version of images
Example – install and configure Jenkins container


Last updated