Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.69 KB

File metadata and controls

55 lines (32 loc) · 1.69 KB

Pre-requisites for Docker Labs

Install Docker

With the introduction of Hyper-V, this gave way for Docker Desktop for Windows which under the hood, uses WSL2's to launch a VM as the host Linux operating system.

NOTE: Running containers on Windows machines is suited for local development purposes only and is NOT RECOMMENDED FOR PRODUCTION USE.

Install Docker Compose

If you're using Ubuntu, you can install docker-compose by simply running the two commands below:

$ sudo apt-get update 
$ sudo apt-get install -y docker-compose 

Read more about it in Install Docker Compose CLI plugin page.

Error: Cannot connect to the Docker daemon

In case you encounter this message when you test Docker for the first time:

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

To resolve this, start the docker service and docker daemon,

sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker
sudo dockerd

You can checkout this Stackoverflow discussion to know more.


Back to first page