Cannot link to a running container started by docker-compose

后端 未结 3 721
刺人心
刺人心 2020-12-22 21:33

I am setting up my local development environment with docker containers. The docker-compose.yml is like following

version: \'2\'

services:
  db:
    image:         


        
3条回答
  •  生来不讨喜
    2020-12-22 22:09

    my command to run links

    docker run --network=YOUR_NETWORK --link SERVICE -t -i app command
    

提交回复
热议问题