PROGRAMMING

  MINTE9
REMEMBERS




Last update:   14-05-2022

Docker Engine

p37 Docker implements a client-server model.
 
# Start a container
docker container run --name ctr1 -it alpine:latest sh
    # Docker client converts the commands ...
    # and POSTs them to API endpoint exposed by Docker daemon

# List running containers
sudo docker container ls
    # alpine:latest    "/bin/sh"    41 seconds ago    clever_chatelet
    # alpine:latest    "sh"    51 seconds ago    ungry_dewdney
    # alpine:latest    "sh"    About a minute ago    ctr1
    # test:latest    "node ./app.js"    43 minutes ago    web1

# Stop containers
sudo docker container stop ctr1
sudo docker container stop web1

Questions    
Images
        A B C D E F
🔔
1/1