Error: Postgres database import in docker container

后端 未结 4 743
情书的邮戳
情书的邮戳 2021-02-08 02:07

I\'m running a ruby on rails application in docker container. I want to create and then restore the database dump in postgres container. But I\'m

Below is what I\'ve do

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-08 02:19

    When you use command docker-compose run -d db

    you run a separate container it means you are running 3 containers where 1 is application 2 are dbs. The container you run using above command will not be a part of service. compose is using separate db.

    So instead of running docker-compose up -d db run docker-compose up -d and continue with your script

提交回复
热议问题