05_deploy a sevice to the swarm
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了05_deploy a sevice to the swarm相关的知识,希望对你有一定的参考价值。
$docker machine ssh manager1 $ docker service create --replicas 1 --name helloworld alpine ping docker.com 9uk4639qpg7npwf3fn2aasksr
docker sevice create 用于创建服务
--name 定义服务的名称
--replicas 定义运行多少个实例
alpine ping docker.com 定义服务为运行一个 Alpine linux 容器,并执行 ping docker.com 命令
查看服务的列表
$ docker service ls ID NAME SCALE IMAGE COMMAND 9uk4639qpg7n helloworld 1/1 alpine ping docker.com
本文出自 “清风柳絮” 博客,请务必保留此出处http://binuu.blog.51cto.com/801317/1942335
以上是关于05_deploy a sevice to the swarm的主要内容,如果未能解决你的问题,请参考以下文章
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 6.0, but
[React] Configure a React & Redux Application For Production Deployment and Deploy to Now
JBOSS启动报错Failed to start service jboss.web.deployment.default-host.
How to install Docker and deploy a LAMP Stack
Citrix Provisioning Services LAB時出現Unable to contact th database Server