cd infra/ovn/docker-compose up -dip netns reach docker's netns
ln -s /var/run/docker/netns/ /var/run/netnsinstall docker-compose and its dependencies
pip3 install docker-compose==1.26.0rc1pip3 install -r https://raw.githubusercontent.com/docker/compose/1.26.0-rc1/requirements.txtmodify compose's source code, and make compose create container first, then connect its networks
def start_container(self, container, use_network_aliases=True):
self.connect_container_to_networks(container, use_network_aliases)
try:
container.start()
except APIError as ex:
def start_container(self, container, use_network_aliases=True):
try:
container.start()
self.connect_container_to_networks(container, use_network_aliases)
except APIError as ex:
def build_default_networking_config(self):
return {}
when dokcer-compose throw error: WARNING: Connection pool is full, discarding connection:localhost
class UnixHTTPConnectionPool(urllib3.connectionpool.HTTPConnectionPool):
def __init__(self, base_url, socket_path, timeout=60, maxsize=15):
yum install python-lxml
cd topology/frontpython3 drawio.py your-chart-name.xmlcd topology/back./all your-chart-name up./all your-chart-name downsystemctl restart docker every time you turn down the appsrm /var/lib/docker/network/files/local-kv.dbrebootdocker rm -f $(docker ps -qa)Content type
Image
Digest
Size
79.6 MB
Last updated
almost 6 years ago
docker pull ohmyadd/tor