Docker Container Start Command Did Not Get .bashrc variables

前端 未结 3 520
慢半拍i
慢半拍i 2021-01-16 13:02

I\'m using docker to execute a command when starting the container but seems the environment variable did not get from the .bashrc file, please give me some advice. thanks <

3条回答
  •  终归单人心
    2021-01-16 13:43

    Try to start docker compose with command:

    PYTHONPATH="$PYTHONPATH:/models/research:/models/research/slim" docker-compose up -d
    

提交回复
热议问题