-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[BUG] service is required by service but is disabled (still not fixed) #10892
Copy link
Copy link
Closed
Labels
Description
Description
As already reported in #10751 the issue is still in the newest release v2.20.2.
Steps To Reproduce
version: '3'
services:
nginx:
image: nginx
links:
- apache
apache:
image: httpd
$ docker-compose-2.20.2 up -d
[+] Running 3/3
✔ Network test_default Created
✔ Container test-apache-1 Started
✔ Container test-nginx-1 Started
$ docker-compose-2.20.2 restart nginx
service apache is required by nginx but is disabled. Can be enabled by profiles []
$ docker-compose-2.19.0 restart nginx
service apache is required by nginx but is disabled. Can be enabled by profiles []
$ docker-compose-2.18.1 restart nginx
[+] Restarting 1/1
✔ Container test-nginx-1 Started
Compose Version
2.19.0up to2.20.2affected2.18.1(and possibly all below) unaffected
Docker Environment
Client: Docker Engine - Community
Version: 24.0.5
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.20.2
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 23
Server Version: 24.0.5
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
runc version: v1.1.8-0-g82f18fe
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.2.0-26-generic
Operating System: Ubuntu 22.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 31.13GiB
Name: xxx
ID: xxx
Docker Root Dir: /var/lib/docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Reactions are currently unavailable