Closed mrweiner closed 3 years ago
Okay, seems like this may have to do with lando directly and not hyperdrive. Was able to get docker-ce installed by following: https://linuxize.com/post/how-to-install-and-use-docker-on-ubuntu-20-04/
This worked for me. Only additional note I might add was the need to set user group to docker.
Create the docker group.
Note: This may have already occurred during the Hyperdrive attempt.
$ sudo groupadd docker
Add your user to the docker group.
$ sudo usermod -aG docker $USER
Activate your user to the docker group.
$ newgrp docker
Check if docker can be run without root
Note: As seen in Rules to keep your setup easy and happy, You have to start Docker every time you start up the WSL2 instance. Running
lando start
should automatically start Docker, but if you need to initialize Docker for non-Lando purposes, try runningsudo service docker start
. This is because the WSL2 distros have no init system, so Docker doesn't auto start.
$ docker run hello-world
If a problem arises, you may need to logout of terminal or reboot to establish your user group.
Source: https://stackoverflow.com/questions/48957195/how-to-fix-docker-got-permission-denied-issue for details.
Both comments were very helpful, thanks!
Describe the bug Hyderdrive throws
E: Unable to locate package docker-engine
when running the release script on Ubuntu 20.04 LTS. The docker package is already present on Ubuntu asdocker.io
.