Para asignar una ip de una red a un contenedor.
docker network create --subnet 177.128.10.0/24 --gateway 177.128.10.1 -d bridge my-net
docker run --network my-net --ip 177.128.10.50 -d --name nginxred2 -ti centos
Last updated 5 years ago
Was this helpful?