Docker Engine
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
Last update: 370 days ago