Docker compose won't find $PWD environment variable

后端 未结 5 2291
星月不相逢
星月不相逢 2020-12-14 06:44

Here\'s my docker-compose:

version: \'2\'
services:
  couchpotato:
    build:
        context: ./couchpotato
        dockerfile: Dockerfile
    ports:
     -         


        
5条回答
  •  忘掉有多难
    2020-12-14 07:21

    I had the same issue with one of my env vars. On looking at my bashrc file more closely, I found out that I hadn't exported that variable.
    Before:
    VAR=
    After:
    export VAR=

提交回复
热议问题