425
Comment:
|
1014
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
|| # docker ps -a || List all containers both running and stopped || || # docker images ls || List images on this machine || || # docker run [imagename] || Runs image || |
{{{ ## List Docker CLI commands docker docker container --help ## Display Docker version and info docker --version docker version docker info ## Execute Docker image - also pull and image docker run hello-world ## Pull (download) and image from Docker Hub docker pull mcr.microsoft.com/mssql/server:2019-latest ## List Docker images docker image ls ## List Docker containers (running, all, all in quiet mode) docker container ls docker container ls --all docker container ls -aq ## Start a new container running the ubuntu image docker run -t -i ubuntu /bin/bash ## Start a bash prompt in an existing, running container docker exec -ti [container name] /bin/bash ## Stop a container docker stop [container name] }}} |
Experimenting with Docker
I just started playing with Docker and kubernete. But first I played with Docker.
Docker
To install this try the convenience script: https://get.docker.com/.
Common Commands - Managing images
## List Docker CLI commands docker docker container --help ## Display Docker version and info docker --version docker version docker info ## Execute Docker image - also pull and image docker run hello-world ## Pull (download) and image from Docker Hub docker pull mcr.microsoft.com/mssql/server:2019-latest ## List Docker images docker image ls ## List Docker containers (running, all, all in quiet mode) docker container ls docker container ls --all docker container ls -aq ## Start a new container running the ubuntu image docker run -t -i ubuntu /bin/bash ## Start a bash prompt in an existing, running container docker exec -ti [container name] /bin/bash ## Stop a container docker stop [container name]