ERROR: for build_env Cannot create container for service build_env: create .: volume name is too short, names should be at least two alphanumeric characters 1

ERROR: for build_env Cannot create container for service build_env: create .: volume name is too short, names should be at least two alphanumeric characters

volumes:
      - ${PWD}/:/apps

Here is what the above code is Doing:
1. We’re creating a new service called web.
2. We’re using the python:3.6.2-alpine3.6 image.
3. We’re exposing port 5000 on the container.
4. We’re mounting the current directory on the host to /apps in the container.

Now, let’s run the following command to build the image and start the container:

$ docker-compose up –build

Similar Posts