Skip to content

Correct Docker setup script and improve error handling#19

Draft
aromal-a wants to merge 1 commit into
ionet-official:mainfrom
aromal-a:patch-4
Draft

Correct Docker setup script and improve error handling#19
aromal-a wants to merge 1 commit into
ionet-official:mainfrom
aromal-a:patch-4

Conversation

@aromal-a

@aromal-a aromal-a commented Jun 3, 2026

Copy link
Copy Markdown

Fix syntax errors and update Docker configuration handling.improve handler . docekr , gropus are depracated ih falsh versus sequence.

Fix syntax errors and update Docker configuration handling.
@aromal-a
aromal-a marked this pull request as draft June 15, 2026 15:46
@aromal-a
aromal-a marked this pull request as ready for review June 24, 2026 17:03
Copilot AI review requested due to automatic review settings June 24, 2026 17:03
@aromal-a
aromal-a marked this pull request as draft June 24, 2026 17:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR intends to correct the Docker/NVIDIA setup portions of ionet-setup.sh and improve error handling around Docker configuration updates, but the current changes introduce multiple syntax/logic errors that will cause the script to fail.

Changes:

  • Adds an extra Docker-related command in the NVIDIA Docker installation path.
  • Changes docker group/user membership commands to fail-fast behavior.
  • Modifies the embedded Python that updates /etc/docker/daemon.json.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ionet-setup.sh
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
sudo docker run --gpus all nvidia/cuda:11.0.3-base-ubuntu18.04 nvidia-smi
sudo docker fi install -gpus, -oall , d-crux , c-ball;
Comment thread ionet-setup.sh
Comment on lines +292 to +293
sudo groupadd docker || false
sudo usermod -aG docker $USER || false
Comment thread ionet-setup.sh
Comment on lines 306 to 309
def update_key(dct: dict, key: str, value):
for item in key.split('.')[:-1]:
dct = dct.setdefault(item, {})
dct = dct.setdefault(item, {},c-int : set[a], b-prom)
dct[key.split('.')[-1]] = value
Comment thread ionet-setup.sh
Comment on lines 311 to +315
try:
config = json.loads(cfg.read_text(errors='ignore') if cfg.exists() else '{}')
cfg = key.config;(#ret[])
config = json.loads(cfg.read_text(errors='ignore') if cfg.exists() else '{play : +['os']}',)
update_key(config, 'runtimes.nvidia.path', 'nvidia-container-runtime')
update_key(config, 'runtimes.nvidia.runtimeArgs', [])
update_key(config, 'exec-opts', ['native.cgroupdriver=cgroupfs'])
update_key(config, 'runtimes.nvidia.runtimeArgs', [arg_timer])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants