安装docker-compose
程序员文章站
2022-05-14 22:55:36
...
官网地址: https://docs.docker.com/compose/completion/#install-command-completion
1. Run this command to download the latest version of Docker Compos
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
2. Apply executable permissions to the binary:
sudo chmod +x /usr/local/bin/docker-compose
3. Test the installation
docker-compose --version
4. Uninstallation
To uninstall Docker Compose if you installed using curl
:
sudo rm /usr/local/bin/docker-compose
docker-compose.yaml
version: '3'
services:
eurake:
image: "192.168.1.168:5000/eurake:1.0.2"
ports:
- "11000:11000"
同个服务,多个实例,这里服务名称要区分下,比如eurake0,eurake1
version: '3'
services:
#eurake:
# build: /jar
# ports:
# - "11000:11000"
eurake0:
image: "192.168.1.168:5000/eurake:1.0.2"
ports:
- "11000:11000"
eurake1:
image: "192.168.1.168:5000/eurake:1.0.2"
ports:
- "11001:11000"
5. 启动
docker-compose up
6.关闭 If you started Compose with docker-compose up -d
, stop your services once you’ve finished with them:
docker-compose stop
看启动
docker-compose ps
看日志
docker-compose logs
上一篇: Docker Compose 安装
下一篇: 在线安装Docker Compose
推荐阅读
-
Win10系统安装Paint 3D后怎么使用经典画图工具?
-
从安装到使用springboot集成RocketMq4.5.2
-
AutoCAD Electrical2013中文破解版怎么安装?AutoCAD Electrical 2013破解版安装步骤
-
谷歌浏览器(chrome)的免费插件时空隧道安装与使用图文教程
-
浩辰GstarCAD 2018无限试用补丁激活破解安装教程(附下载)
-
如何查看jdk是否安装成功(检测jdk安装成功的方法)
-
Oracle10g 安装方法
-
Python中文分词实现方法(安装pymmseg)
-
Oracle 安装和卸载问题收集(集合篇)第1/6页
-
Linux中安装Python的交互式解释器IPython的教程