Update README.md (#126)
adding --mount type=bind,source=/var/lib/docker/containers,destination=/var/lib/docker/containers as per IcM 75500254
This commit is contained in:
Родитель
122e762b53
Коммит
7ba6cf4976
|
@ -1,5 +1,5 @@
|
|||
To run OMS Agent as a global service on Docker Swarm, please log onto your master node and run the following command:
|
||||
|
||||
```
|
||||
docker service create --name omsagent --mode global --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock -e WSID="<WORKSPACE ID>" -e KEY="<PRIMARY KEY>" -p 25225:25225 -p 25224:25224/udp --restart-condition=on-failure microsoft/oms
|
||||
docker service create --name omsagent --mode global --mount type=bind,source=/var/run/docker.sock,destination=/var/run/docker.sock --mount type=bind,source=/var/lib/docker/containers,destination=/var/lib/docker/containers -e WSID="<WORKSPACE ID>" -e KEY="<PRIMARY KEY>" -p 25225:25225 -p 25224:25224/udp --restart-condition=on-failure microsoft/oms
|
||||
```
|
||||
|
|
Загрузка…
Ссылка в новой задаче