How to get the port numbers for a service - Docker compose file

前端 未结 2 1287
被撕碎了的回忆
被撕碎了的回忆 2021-01-26 08:45

I am trying to start containers with the docker-compose.yml. I am trying to start two services, one is mongo and other is OHIF viewer.

2条回答
  •  伪装坚强ぢ
    2021-01-26 08:55

    Did you use docker-compose run or docker-compose up?

    According to docker documentation: "docker-compose run command does not create any of the ports specified in the service configuration."

    Try to use docker-compose up command.

提交回复
热议问题