1
0
mirror of https://github.com/newnius/YAO-agent.git synced 2025-06-06 21:31:55 +00:00

update, support network alias

This commit is contained in:
Newnius 2019-06-13 17:46:12 +08:00
parent 84dac98ccc
commit 694dcf2b08
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# YAO-agent
https://docker-py.readthedocs.io/en/stable/containers.html
```bash
bin/kafka-topics.sh \
--create \

View File

@ -90,7 +90,7 @@ def create_container():
hostname='node1',
detach=True,
host_config=host_config,
environment = {"repo": docker_workspace, "NVIDIA_VISIBLE_DEVICES": docker_gpus},
environment = {"repo": '', "NVIDIA_VISIBLE_DEVICES": '0'},
networking_config=networking_config,
runtime='nvidia'
)