You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Description
Compose seems to have issues with the host network driver on Mac.
The below docker-compose.yml will execute using the old docker-compose but give an Error response from daemon: network-scoped alias is supported only for containers in user defined networks using docker compose on Docker Desktop for Mac:
It looks like (although I couldn't inspect) that compose might auto-add aliases to the container parameters but the host driver cannot run if any aliases are added.
docker run --net=host nginx also works fine.
Steps to reproduce the issue:
Save the above excerpt into docker-compose.yml
Run docker compose up
Describe the results you received:
[+] Running 1/1
⠿ Network "project_default" Created 3.8s
⠿ Container project_test_1 Starting 0.0s
The new 'docker compose' command is currently experimental. To provide feedback or request new features please open issues at https://github.com/docker/compose-cli
Error response from daemon: network-scoped alias is supported only for containers in user defined networks
Describe the results you expected:
[+] Running 2/2
⠿ Network "project_default" Created 3.8s
⠿ Container project_test_1 Started 2.0s
Additional information you deem important (e.g. issue happens only occasionally):
This is on Mac OS 10.14.6 (Mojave).
Output of docker version:
$ docker version
Client: Docker Engine - Community
Cloud integration: 1.0.12
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:13:00 2021
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:15:47 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Output of docker context show:
You can also run docker context inspect context-name to give us more details but don't forget to remove sensitive content.
BUG REPORT INFORMATION
Description
Compose seems to have issues with the host network driver on Mac.
The below
docker-compose.yml
will execute using the olddocker-compose
but give anError response from daemon: network-scoped alias is supported only for containers in user defined networks
usingdocker compose
on Docker Desktop for Mac:It looks like (although I couldn't inspect) that compose might auto-add aliases to the container parameters but the host driver cannot run if any aliases are added.
docker run --net=host nginx
also works fine.Steps to reproduce the issue:
docker-compose.yml
docker compose up
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
This is on Mac OS 10.14.6 (Mojave).
Output of
docker version
:Output of
docker context show
:You can also run
docker context inspect context-name
to give us more details but don't forget to remove sensitive content.Output of
docker info
:Additional environment details (AWS ECS, Azure ACI, local, etc.):
The text was updated successfully, but these errors were encountered: