exec: "com.docker.cli": executable file not found in $PATH

Sami Al-Subhi

I am getting this error when docker-compose up on one of the containers only.

exec: "com.docker.cli": executable file not found in $PATH
The terminal process "/bin/zsh '-c', 'docker logs -f f6557b5dd19d9b2bc5a63a840464bc2b879d375fe72bc037d82a5358d4913119'" failed to launch (exit code: 1).
  1. I uninstalled and reinstalled docker [email protected] on Mac
  2. docker-compose build from scratch
  3. other containers are running
  4. I get the above error.
  5. It used to be running. I am not sure why this is happening. I know that I upgraded docker from I think 2.3
  6. also I think I received an update on my mac

Dockerfile

FROM tiangolo/uvicorn-gunicorn:python3.8
COPY requirements.txt /app/
RUN pip install -r requirements.txt

COPY ./app /app/app
#COPY config.py /app/app/

docker-compose.yml

version: "3"

services:
    postgresql:
        container_name: postgresql
        image: postgres:12
        ports:
            - "5433:5432"
        environment:
            - POSTGRES_USER=${POSTGRES_USER}
            - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
            - POSTGRES_DB=${POSTGRES_DB}
        volumes:
            - ./postgres-data:/var/lib/postgresql/data
    fastapi:
        build:
            context: ./fastapi/
            dockerfile: Dockerfile
        volumes:
            - ./fastapi/app/imgs:/app/app/imgs
        ports:
            - "1001:80"
        depends_on:
            - postgresql
        env_file:
            - .env
    pgadmin:
        container_name: pgadmin
        image: dpage/pgadmin4
        environment:
            - [email protected]
            - PGADMIN_DEFAULT_PASSWORD=admin
        ports:
            - "5050:80"
        depends_on:
            - postgresql

    solr:
        build:
            context: ./solr/
            dockerfile: Dockerfile
        restart: always
        ports:
            - "8983:8983"
        volumes:
            - data:/var/solr
volumes:
    data:

update: It worked when I downgraded to docker desktop 2.3.0.4

Hannes Oberreiter

The Desktop Docker Version 2.4.0.0 is working for me after I did deactivate the feature Enable cloud experience. You can find it under Preferences --> Command Line.

Cloud Experience

See also discussion on Github Issues: https://github.com/docker/for-mac/issues/4956 https://github.com/microsoft/vscode-docker/issues/2366

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

gcloud app deploy says: exec: "git": executable file not found in $PATH

starting container process caused "exec: > \"exec\": executable file not found in $PATH": unknown

Golang docker multi-stage build failing to run: exec: "go": executable file not found in $PATH

"exec: \"go\": executable file not found in $PATH"

exec: "gcc": executable file not found in %PATH% when trying go build

exec: executable file not found in $PATH

exec: "sqlboiler": executable file not found in $PATH

Go moq : running "moq": exec: "moq": executable file not found in $PATH

godep: exec: "go": executable file not found in $PATH

docker: executable file not found in $PATH

docker-exec failed: "cd": executable file not found in $PATH

System error: exec: "deployment": executable file not found in $PATH

Executable file not found in $PATH

executable file not found in $PATH Dockerfile

exec: "docker-runc": executable file not found in $PATH: unknown

"sqlplus": executable file not found in $PATH" when running a command with docker exec

Getting error executable file not found in $PATH when trying verbose run docker container or when docker exec

Error running docker container: starting container process caused "exec: \"python\": executable file not found in $PATH": unknown

"exec: "python": executable file not found in $PATH

Docker container build faild: "exec: \"flask\": executable file not found in $PATH": unknown

docker local registry "exec: \"htpasswd\": executable file not found in $PATH"

exec: "php-fpm": executable file not found in $PATH: unknown

Docker Base Simple image : Cannot start container XXX: exec: "cat": executable file not found in $PATH

CloudFoundry staging error exec: "git": executable file not found in $PATH

How to solve "exec: \"Python\": executable file not found in $PATH": unknown. for simple python script on AWS

cgo: exec gcc: exec: "gcc": executable file not found in $PATH Error in Egress operator installation

Docker Go image: starting container process caused: exec: "app": executable file not found in $PATH: unknown

executable file not found in $PATH: unknown

Error: exec: \"app.handler\": executable file not found in $PATH", "errorType": "Runtime.InvalidEntrypoint"