sudo apt-get install dockersudo usermod -aG docker $USERGo to https://hub.docker.com/editions/community/docker-ce-desktop-windows, download and install it. Once Docker is installed, use Docker Interactive Window or Powershell to use the following commands.
To use Docker's public images, you must have a Docker ID or account, go to https://hub.docker.com/ and register your account if you don't have one as yet. Otherwise, run the following command:
docker logindocker psList all containers, event if they aren’t running
docker ps -aDocker run creates a new container from the docker image and starts the container docker run tutum/hello-world
docker run --name web1 tutum/hello-world# docker run --name web2 -p exposePORTt:localPort tutum/hello-world
docker run --name web2 -p 8080:80 tutum/hello-worlddocker run -d --name web3 -p 8080:80 tutum/hello-world
docker run -d --name web4 -p 8081:80 tutum/hello-worlddocker logs web3for dlog in `docker ps -a -q`; do docker logs $dlog; donedocker stop web3docker stop $(docker ps -a -q)docker start web3# docker rm <container-name>
docker rm web3docker rm $(docker ps -a -q)Stop and remove all containers
docker rm $(docker ps -a -q) & docker stop $(docker ps -a -q)docker imagesdocker rmi wordpress
docker rmi $(docker images -q)