![]() ![]() To wrap things up, you most likely will want to install docker-compose. You may end up wanting to enable/disable BuildKit depending on your use cases (basically to end up with the classic output with Docker), and the easiest way for this is to just add the following to your. %docker ALL=(ALL) NOPASSWD: /usr/bin/dockerd. ![]() Want to go passwordless with the launching of dockerd? Test -S "$DOCKER_SOCK" & export DOCKER_HOST="unix://$DOCKER_SOCK" profileĭOCKER_SOCK="/mnt/wsl/shared-docker/docker.sock" mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd $DOCKER_DIR/dockerd.log 2>&1" profile (make sure “ DOCKER_DISTRO” matches your distro, you can check it by running “ wsl -l -q” in Powershell) There are two options, manual & automatic Then it’s time to create a launch script for dockerd. “ docker -H unix:///mnt/wsl/shared-docker/docker.sock run -rm hello-world”
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |