GoConqr has a new look! Let us know what you think.

Flashcards

2 Docker Commands

Archimed Nemes Kodekloud Docker basics Easy English 18 cards

Cards in this deck (18)

  1. 1Run a container from an imagedocker run
  2. 2Run an instance of nginx application on the docker hostdocker run nginx
  3. 3What does docker run do f image is not present on host?It will go out to docker hub and pull the image (for firs time)
  4. 4List all running containers and some basic infomationdocker ps
  5. 5What does each container automatically get from dockercontainer id an dname
  6. 6View all containers running or notdocker ps -a
  7. 7Stop docker containerdocker stop "name" or container id
  8. 8Remove container altogetherdocke rm "name"
  9. 9View list of imagesdocker images
  10. 10Remove nginx imagedocker rmi nginx
  11. 11What should you check before removing container imageCheck if containers are running off of that image
    then stop and delete those containers
  12. 12Download only nginx image and not run the containerdocker pull nginx
  13. 13What happens first when we run the following commang docker run ubuntuIt runs an instance of ubuntu and exits immediately
  14. 14Instruct ubuntu container to sleep with duration 5 secondsdocker run ubuntu sleep 5
  15. 15View /etc/hosts command in alibala containerdocker exec alibala cat /etc/hosts
  16. 16Run docker container in detached modedocker run -d "name"
  17. 17Attach docker containerdocker attach container id
  18. 18Run docker centos second time then execute bash command and log into containerdocker run -it centos bash

Information

Description
Easy Kodekloud Docker basics Flashcards on 2 Docker Commands, created by Archimed Nemes on 22/12/2022.
Created by
Archimed Nemes
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?