I work on WSL on Windows. I downloaded Ubuntu-20.04 from the Microsoft store. After running, I ran these commands:
1 sudo apt update3 sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 7EA0A9C3F273FCD84 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"5 sudo apt update6 sudo apt install docker-ce7 sudo systemctl start docker8 sudo docker run hello-world
Unfortunately:
-sudo systemctl start dockerSystem has not been booted with systemd as init system (PID 1). Can't operate.Failed to connect to bus: Host is down
and:
-sudo docker run hello-worlddocker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.See 'docker run --help'.
What do I need to do to get docker working on my WSL? My co-worker used identical commands and everything worked for him