question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support new docker cli which contains docker-compose replacement

See original GitHub issue

Description of the new feature/enhancement

docker-compose has been rewritten in Go and made a part of the docker cli. The rewritten docker compose command (now part of the docker cli and no longer a standalone app) interacts better with shells and such. See: https://github.com/docker/roadmap/issues/15

The new docker compose command also includes new command options that are not going to be backported to docker-compose cli. Docker desktop has migrated to the new docker cli which contains docker compose, because of this I have rewritten startup scripts to use docker compose instead of docker-compose. Those scripts don’t work with container-desktop currently.

Proposed technical implementation details (optional)

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
markrexwinkelcommented, Jan 24, 2022

@rouke-broersma could you create a new issue for this ?

0reactions
rouke-broersmacommented, Jan 24, 2022

I am also seeing some other errors. I don’t know if they are related, should I create a new issue?:

➜  docker git:(main) docker-compose up -d
[+] Running 0/1
 ⠦ Container proxy  Starting                                                                                       0.7s
Error response from daemon: driver failed programming external connectivity on endpoint proxy (b981cc53a782cf84ce46a9f64106f7e65035a617f419476e30a58fb11e812e7e): exec: "docker-proxy": executable file not found in $PATH

➜  docker git:(main) docker-compose up -d
[+] Running 0/1
 ⠹ Container proxy  Starting                                                                                       0.2s
Error response from daemon: driver failed programming external connectivity on endpoint proxy (aef093e5c0727b448bb0c5bc2077e48b4ce59a8a95e3b7b25f63e69153ecc57d): Bind for 0.0.0.0:8080 failed: port is already allocated

I’m getting this result every time I run docker-compose up -d from a fresh boot. First it errors with docker-proxy cannot be found exactly once, and every subsequent docker-compose up errors with port is already allocated.

This is from a fresh boot where docker-desktop has not been started and where I have deleted all docker-desktop wsl distros. Netstat does not show port 8080 as being bound by anything in windows or in my WSL distro.

When then killing container-desktop and starting docker-desktop the port binding of that container works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate to Compose V2
The easiest and recommended way is to make sure you have the latest version of Docker Desktop, which bundles the Docker Engine and...
Read more >
Announcing Compose V2 General Availability
Docker Compose V2 is a drop-in replacement for Compose V1. In most cases, you can remove the dash or enable aliasing of docker-compose...
Read more >
Overview of docker compose CLI
The new Compose V2, which supports the compose command as part of the Docker CLI, is now available. Compose V2 integrates compose functions...
Read more >
Compose file versions and upgrading
The latest and recommended version of Compose is the Compose Specification. Make sure you switch to Compose V2 with the docker compose CLI...
Read more >
Install the Compose plugin
Download and install Docker Compose on Linux with this step-by-step handbook. This plugin can be installed manually or by using a repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found