Skip to content

docker-compose CLI output is not "greppable" any more #9202

Description

@niftyhack
  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: F422FCD1-9103-499F-B66B-A21B08AF9789/20220218084251

Expected behavior

CLI output from docker-compose is "greppable".

Actual behavior

CLI output from docker-compose is not "greppable". But CLI output from docker command is "greppable".

Information

  • Problem is reproducible
  • Problem was noticed yesterday afternoon. Yesterday evening Docker Desktoop was updated, problem persists
  • Problem appeared with an update, but I don't know since when it exists
  • macOS Version: Big Sur 11.6.2
  • Intel chip: 2,7 GHz Quad-Core Intel Core i7
  • Docker Desktop Version: 4.5.0 (74594)

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

$ /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0031: does the Docker API work?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0001: is the application running?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0017: can a VM be started?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0007: is the backend responding?
[PASS] DD0014: are the backend processes running?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0012: is the VM networking working?
[PASS] DD0032: do Docker networks overlap with host IPs?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?
No fatal errors detected.

Steps to reproduce the behavior

$ cat docker-compose.yml
services:
  web:
    image: nginx

$ docker-compose up -d
[+] Running 1/1
 ⠿ Container tmp-web-1  Started

$ docker ps
CONTAINER ID   IMAGE     COMMAND                  CREATED          STATUS          PORTS     NAMES
2904a5bfd2ed   nginx     "/docker-entrypoint.…"   49 seconds ago   Up 49 seconds   80/tcp    tmp-web-1

$ docker exec 2904a5bfd2ed ls -lh
total 80K
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 bin
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 boot
drwxr-xr-x   5 root root  340 Feb 18 08:36 dev
drwxr-xr-x   1 root root 4.0K Jan 26 08:58 docker-entrypoint.d
-rwxrwxr-x   1 root root 1.2K Jan 26 08:58 docker-entrypoint.sh
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 etc
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 home
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 lib
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 lib64
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 media
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 mnt
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 opt
dr-xr-xr-x 199 root root    0 Feb 18 08:36 proc
drwx------   2 root root 4.0K Jan 25 00:00 root
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 run
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 sbin
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 srv
dr-xr-xr-x  13 root root    0 Feb 18 08:36 sys
drwxrwxrwt   1 root root 4.0K Jan 26 08:58 tmp
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 usr
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 var

$ docker exec 2904a5bfd2ed ls -lh | grep boot ######### <- This work's.
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 boot

$ docker-compose exec web ls -lh
total 80K
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 bin
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 boot
drwxr-xr-x   5 root root  340 Feb 18 08:36 dev
drwxr-xr-x   1 root root 4.0K Jan 26 08:58 docker-entrypoint.d
-rwxrwxr-x   1 root root 1.2K Jan 26 08:58 docker-entrypoint.sh
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 etc
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 home
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 lib
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 lib64
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 media
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 mnt
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 opt
dr-xr-xr-x 199 root root    0 Feb 18 08:36 proc
drwx------   2 root root 4.0K Jan 25 00:00 root
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 run
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 sbin
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 srv
dr-xr-xr-x  13 root root    0 Feb 18 08:36 sys
drwxrwxrwt   1 root root 4.0K Jan 26 08:58 tmp
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 usr
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 var

$ docker-compose exec web ls -lh | grep boot ######### -> This doesn't work.
total 80K
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 bin
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 boot
drwxr-xr-x   5 root root  340 Feb 18 08:36 dev
drwxr-xr-x   1 root root 4.0K Jan 26 08:58 docker-entrypoint.d
-rwxrwxr-x   1 root root 1.2K Jan 26 08:58 docker-entrypoint.sh
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 etc
drwxr-xr-x   2 root root 4.0K Dec 11 17:25 home
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 lib
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 lib64
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 media
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 mnt
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 opt
dr-xr-xr-x 199 root root    0 Feb 18 08:36 proc
drwx------   2 root root 4.0K Jan 25 00:00 root
drwxr-xr-x   1 root root 4.0K Feb 18 08:36 run
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 sbin
drwxr-xr-x   2 root root 4.0K Jan 25 00:00 srv
dr-xr-xr-x  13 root root    0 Feb 18 08:36 sys
drwxrwxrwt   1 root root 4.0K Jan 26 08:58 tmp
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 usr
drwxr-xr-x   1 root root 4.0K Jan 25 00:00 var     

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions