mirror of
https://github.com/rancher/os.git
synced 2025-07-16 16:11:03 +00:00
Updated How to run multiple user docker daemons (markdown)
parent
229081e12c
commit
aafdcc166f
@ -76,13 +76,18 @@ system-docker network create --subnet=172.20.0.0/16 dind
|
|||||||
Just use `ros engine create`.
|
Just use `ros engine create`.
|
||||||
|
|
||||||
```
|
```
|
||||||
ros engine create dind1 --network=dind --fix-ip=172.20.0.2
|
ros engine create dind1 --network=dind --fixed-ip=172.20.0.2
|
||||||
```
|
```
|
||||||
|
|
||||||
After the OUD service is created, users can query the OUD service as usual.
|
After the OUD service is created, users can query the OUD service as usual.
|
||||||
|
|
||||||
```
|
```
|
||||||
ros service list
|
ros service list
|
||||||
|
...
|
||||||
|
...
|
||||||
|
disabled volume-efs
|
||||||
|
disabled volume-nfs
|
||||||
|
enabled dind1
|
||||||
|
|
||||||
|
|
||||||
ros service up dind1
|
ros service up dind1
|
||||||
@ -102,9 +107,6 @@ Just use `ros engine rm`:
|
|||||||
ros engine rm dind1
|
ros engine rm dind1
|
||||||
```
|
```
|
||||||
|
|
||||||
### SSH into OUD container
|
|
||||||
|
|
||||||
|
|
||||||
### Rancher1.6 setup
|
### Rancher1.6 setup
|
||||||
|
|
||||||
#### Run rancher/server with UD
|
#### Run rancher/server with UD
|
||||||
@ -116,9 +118,12 @@ docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
|
|||||||
#### Run rancher/agent in OUD container
|
#### Run rancher/agent in OUD container
|
||||||
|
|
||||||
```
|
```
|
||||||
# -e CATTLE_CHECK_NAMESERVER=false`need to be added
|
# exec into OUD container
|
||||||
|
system-docker exec -it dind1 /bin/sh
|
||||||
|
|
||||||
docker run -e CATTLE_AGENT_IP="172.20.0.2" --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher -e CATTLE_CHECK_NAMESERVER=false rancher/agent:v1.2.10 http://<RancherOS-IPADDRESS>:8080/v1/scripts/xxxxxx
|
# Add an agent to this rancher-server
|
||||||
|
# "-e CATTLE_CHECK_NAMESERVER=false" need to be added
|
||||||
|
docker run -e CATTLE_AGENT_IP="172.20.0.2" -e CATTLE_CHECK_NAMESERVER=false --rm --privileged -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.10 http://<RancherOS-IPADDRESS>:8080/v1/scripts/xxxxxx
|
||||||
```
|
```
|
||||||
|
|
||||||
## Limitations
|
## Limitations
|
||||||
|
Loading…
Reference in New Issue
Block a user