Changing the Docker Container IP Address
This section describes how to modify the IP address of a Docker container based on the Docker container startup script, for example, the cfct script that contains the DOCKER_SUBNET variable.
DOCKER_SUBNET=172.18.0.0/16
This variable indicates the IP address and mask of the Docker container. You can run the following command to customize the container IP address:
docker network create ${DOCKER_SUBNET}${container_name}
The IP address of the Docker container must be an unused IP address.
Parent topic: Changing the IP address