Public Repository

Last pushed: a year ago
Short Description
Short description is empty for this repo.
Full Description

prepare network

docker network create --subnet=10.1.0.0/16 -o "com.docker.network.bridge.enable_ip_masquerade=true" -o "com.docker.network.bridge.enable_icc=true" -o "com.docker.network.bridge.host_binding_ipv4=0.0.0.0" -o "com.docker.network.bridge.name=xrspark-bridge" -o "com.docker.network.driver.mtu=1500" xrspark-bridge

start ipa container

docker run -d --privileged --name ipa --net xrspark-bridge --ip 10.1.1.2 -h ipa.xrspark.com xrspark/ipa-pre
docker exec -it ipa /bin/bash

install ipa-server in the container

ipa-server-install \
-r XRSPARK.COM \
-n xrspark.com \
-p xrspark.com \
-a xrspark.com \
--hostname=$HOSTNAME \
--no-forwarders \
--setup-dns

commit container

docker commit ipa xrspark/ipa

windows add route

docker-machine inspect|jq .Driver.IPAddress -r > docker-machine-ip.txt
set /p docker-machine-ip=<docker-machine-ip.txt
route add 10.1.0.0 MASK 255.255.0.0 %docker-machine-ip%

docker run

docker run -d --privileged --name ipa --net xrspark-bridge --ip 10.1.1.2 -h ipa.xrspark.com xrspark/ipa

other docker run with dns

docker run -d --privileged --name test -h base.xrspark.com --dns=172.17.0.2 xrspark/centos7-base
docker exec -it test /bin/bash

Docker Pull Command
Owner
xrspark

Comments (0)