Differences between revisions 6 and 9 (spanning 3 versions)
Revision 6 as of 2020-09-28 01:53:47
Size: 830
Editor: scot
Comment:
Revision 9 as of 2021-07-08 14:49:28
Size: 1471
Editor: scot
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:

PROBLEM: Docker doesn't actually start, when going to settings it just spins.

FIX: Start powershell as admin. Run: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
Line 21: Line 25:
## Execute Docker image ## Execute Docker image - also pull and image
Line 24: Line 28:
## List Docker images
docker image ls
## Pull (download) and image from Docker Hub
docker pull mcr.microsoft.com/mssql/server:2019-latest

## List Docker images and resource sizes
docker image ls
OR
docker images
Line 37: Line 46:

## Stop a container
docker stop [container name]

## List running containers
docker ps

## Inspect the configuration of a container
docker inspect [container name]

## Delete a container
docker container rm [container name]

## Delete an image
docker image rm [image name]

Experimenting with Docker

I just started playing with Docker and kubernete. But first I played with Docker.

Docker

PROBLEM: Docker doesn't actually start, when going to settings it just spins.

FIX: Start powershell as admin. Run: & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon

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 and resource sizes
docker image ls 
OR
docker images

## 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]

## List running containers
docker ps

## Inspect the configuration of a container 
docker inspect [container name]

## Delete a container 
docker container rm [container name]

## Delete an image
docker image rm [image name]

NetworkConfiguration/Docker (last edited 2021-08-13 16:18:58 by scot)