Docker

Docker

Posted by cl9000 on January 17, 2020

docker

DaoCloud Services - dashboard.daocloud
DaoCloud Services 文档
菜鸟教程 - Docker
在MacOS下,Docker images保存在哪个路径下
Docker 方式 部署 vue 项目 (docker + vue + nginx)
Docker 通过Nginx镜像部署Vue项目
Docker —— 从入门到实践
Cloud Insight文档中心

docker-compose

docker-compose ERROR

1
2
3
4
5
ERROR: Version in "./docker-compose.yml" is unsupported. 
You might be seeing this error because you're using the wrong Compose file version.
Either specify a version of "2" (or "2.0") and place your service definitions
under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

参考方案:
1-ERROR: Version in “./docker-compose.yml” is unsupported
2-ERROR: Version in “./docker-compose.yml” is unsupported
解决方案:

1
2
3
4
$ rm /usr/local/bin/docker-compose
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
$ docker-compose --version

运维之美 - 使用 Docker-Compose 编排容器



支付宝打赏 微信打赏

赞赏一下 坚持原创技术分享,您的支持将鼓励我继续创作!