用老师docker-compose up -d 执行不起来
来源:1-4 MongoDB简介&安装
qq_慕后端6491586
2020-05-01 17:20:14
version: '3.1'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- 27017:27017
volumes:
- /home/mongotest:/data/db
1回答
Brian
2020-05-02
你的提示很清楚了,你安装了docker,但是没有运行docker啊?!
就跟你平时在电脑上装个软件,你要双击打开一样。
如果你的centos上装的,使用systemctl start docker, systemctl enable docker
相似问题