# To Install docker and portainer on wsl, follow these instructions
# 1. https://docs.microsoft.com/en-us/windows/wsl/install
# 2. https://docs.docker.com/engine/install/ubuntu/
# 3.
sudo service docker start
sudo service docker status
# 4. Prevent user from always having to run docker command as sudo
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
# 5. Test docker
docker run hello-world
# 6. https://docs.portainer.io/start/install/server/docker/wsl
# 7. Setup docker to start on wsl start - https://stackoverflow.com/a/65814529/9034699
# - https://techbrij.com/wsl-2-ubuntu-services-windows-10-startup
echo 'wsl.exe -u root -e sh -c "service docker status || service docker start"' > ~/.profile