mirror of
https://github.com/newnius/YAO-agent.git
synced 2025-12-15 13:56:44 +00:00
update, support network alias
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# YAO-agent
|
# YAO-agent
|
||||||
|
|
||||||
|
https://docker-py.readthedocs.io/en/stable/containers.html
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bin/kafka-topics.sh \
|
bin/kafka-topics.sh \
|
||||||
--create \
|
--create \
|
||||||
|
|||||||
2
test.py
2
test.py
@@ -90,7 +90,7 @@ def create_container():
|
|||||||
hostname='node1',
|
hostname='node1',
|
||||||
detach=True,
|
detach=True,
|
||||||
host_config=host_config,
|
host_config=host_config,
|
||||||
environment = {"repo": docker_workspace, "NVIDIA_VISIBLE_DEVICES": docker_gpus},
|
environment = {"repo": '', "NVIDIA_VISIBLE_DEVICES": '0'},
|
||||||
networking_config=networking_config,
|
networking_config=networking_config,
|
||||||
runtime='nvidia'
|
runtime='nvidia'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user