Docker compose no encontrará la variable de entorno $ PWD
Aquí está mi docker-compose:
version: '2'
services:
couchpotato:
build:
context: ./couchpotato
dockerfile: Dockerfile
ports:
- 5050:5050
volumes:
- "${PWD}/couchpotato/data:/home/CouchPotato/data/"
- "${PWD}/couchpotato/config:/home/CouchPotato/config/"
Cuando lo ejecuto dentro del shell, en el directorio de docker-compose.yml, obtengo:
WARNING: The PWD variable is not set. Defaulting to a blank string.
y la composición comienza con PWD estando vacío.
No veo ningún error en el archivo, como se ve aquí:https://docs.docker.com/compose/environment-variables/