我得到了 docker-compose.yml:
version: '2'
services:
web:
build: .
ports:
- "3000:3000"
volumes:
- .:/code
depends_on:
- db1
links:
- db1:mongo
db1:
image: mongo
Dockerfile:
FROM node:4.4.2
ADD . /code
WORKDIR /code
RUN npm i
CMD node app.js
我将转储存储在项目文件中,因此文件夹与容器共享。恢复转储的过程应该如何?在网络容器中,我无权访问 mongoresore commnad ...