connectorctl dockersubnet
To configure the IP address of the Docker daemon, use the connectorctl dockersubnet command.
connectorctl dockersubnet show
connectorctl dockersubnet add -i ip-address -c cidr-length
Syntax Description
Keywords and Variables | Description |
---|---|
show |
Shows the configuration details of the Docker daemon |
add |
Changes the IP address of the Docker daemon |
-i ip-address -c cidr-length |
Docker daemon IPv4 or IPv6 address and the Classless interdomain routing (CIDR) length |
Command History
Release 3 |
This command is introduced. |
Usage Guidelines
Caution |
Ensure that the Docker subnet IP used does not overlap with the service-network subnet. |
Examples
The following example shows how to change the IP address of the Docker daemon.[spacesadmin@connector ~]$ connectorctl dockersubnet add -i 172.20.10.10 -c 16
Executing command:dockersubnet
Command execution status:Success
-----------------------
Successfully changed the docker subnet configuration to: 172.20.10.10/16
Note: This will restart the docker deamon, so all the connector services, service-manager will be restarted
The following example shows how to view the IP address of the Docker daemon.[spacesadmin@connector ~]$ connectorctl dockersubnet show
Executing command:dockersubnet
Command execution status:Success
-----------------------
{
"ipv6": true,
"ip6tables": true,
"experimental": true,
"fixed-cidr-v6": "2001:db8:abc1::/64",
"userland-proxy": false,
"log-opts": {
"max-size": "10m",
"max-file": "5"
},
"bip": "172.20.10.10/16"
}