Docker error The command non-zero code: 1 python

i have problem when i tried to build container. And the error is :

The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1

i don’t know why, i follow the code from documentation but always get error.

  • Storing and analyzing electricity and payment data in open source DB
  • Dockerfile: Permission denied during build when running ssh-agent on /tmp
  • 403 error on PHP files with nginx, PHP-FPM and docker
  • docker selenium hub not accessible from different machine (in same network) [docker selenium grid not working]
  • Docker Continuous Integration with AWS
  • Can't access dev server when using ionic serve
  • Dockerfile

    FROM python:2.7-slim
    # # Set the working directory to /app
    WORKDIR /app
    # # Copy the current directory contents into the container at /app
    ADD . /app
    # # Install any needed packages specified in requirements.txt
    RUN pip install -r requirements.txt
    # # Make port 80 available to the world outside this container
    EXPOSE 80
    # # Define environment variable
    ENV NAME World
    # # Run when the container launches
    CMD ["python", ""]

  • Wifi connection dropped after docker start
  • Running a docker container as a task in marathon
  • How can I connect a docker container in AWS to a RDS
  • Docker doesn't allow to view /proc/xxx/stack?
  • Tensorboard Site cannot be found
  • docker COPY with file globbing
  • One Solution collect form web for “Docker error The command non-zero code: 1 python”

    Seems issue with the location of the file try to give absolute path of the file that you are referring in dockerfile

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.