Skip to content

Managing docker on a WSL distro remotely with lazydocker running on windows? #646

Answered by Kambaa
Kambaa asked this question in Q&A
Discussion options

You must be logged in to vote

UPDATE:

After some chatting with chatgpt, i think i got this working: Here are the steps that i've taken(for my WSL ubuntu distro):

  • Verify running docker service running on WSL distro by openning a WSL terminal and run this command

    sudo systemctl status docker
    

  • Add another service configuration that adds the tcp access capability to docker:

    # Generate a directory 
    sudo mkdir -p /etc/systemd/system/docker.service.d
    # Add an override service definition
    sudo nano /etc/systemd/system/docker.service.d/override.conf
    

    add these lines to the override.conf

    [Service]
    ExecStart=
    ExecStart=/usr/bin/dockerd -H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375
    
  • Restart services and check the new…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kambaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant