Master-Bot icon indicating copy to clipboard operation
Master-Bot copied to clipboard

Docker-Compose not working in WSL with Debian Stretch

Open PhantomNimbi opened this issue 3 years ago • 2 comments

As the title states docker compose doesn't work in debian stretch on WSL...

compose isn't a subcommand of docker and --env-file isn't even an option in docker-compose on debian 9 for WSL.

  • Screenshot: image

PhantomNimbi avatar Sep 14 '22 01:09 PhantomNimbi

I'm pretty sure you need to install docker compose in addition, that's at least how I did it once

edit: changed source

galnir avatar Sep 14 '22 07:09 galnir

i updated the commands from that url, as it installs v1 legacy, should technically work but i only did testing with v2 of compose plugin

(tested the following inside deb 9 stretch Docker container)

sudo curl -L https://github.com/docker/compose/releases/download/v2.11.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

Much Love -Bacon

Bacon-Fixation avatar Sep 15 '22 00:09 Bacon-Fixation

@PhantomNimbi Did you manage to get it working?

galnir avatar Sep 21 '22 13:09 galnir

@PhantomNimbi Did you manage to get it working?

Yolo, sorry for the late reply haven't been able to access my PC in a while. Bout to test it now.

--- Edit

Hmmm running debian inside docker gives me debian 10 instead of debian 9... somehow I feel i should have run it in a docker image from the start lmfao...

ghost avatar Sep 21 '22 22:09 ghost

Got it to run in a Debian 10 Docker image without using docker-compose.

However, the only thing I can't access this way is the Dashboard. Although the ports are definitely open my browser is unable to find the webpage when trying to access it.

image

image

image

ghost avatar Sep 22 '22 01:09 ghost

and i got it to work. Had to swap a few things over. Instead of hosting a Debian Docker container for it I simply ran redis and postgres in their own docker containers and used those for the bot.

Now both the bot and the dashboard are working perfectly =)

ghost avatar Sep 22 '22 03:09 ghost