Skip to content

Commit

Permalink
Use host network when running metalprobe (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
afritzler authored Apr 26, 2024
1 parent 0ca787c commit 1fb9b0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/controller/testdata/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Restart=always
ExecStartPre=-/usr/bin/docker stop metalprobe
ExecStartPre=-/usr/bin/docker rm metalprobe
ExecStartPre=/usr/bin/docker pull foo:latest
ExecStart=/usr/bin/docker run --name metalprobe foo:latest --registry-url=http://localhost:12345 --server-uuid=38947555-7742-3448-3784-823347823834
ExecStart=/usr/bin/docker run --network host --privileged --name metalprobe foo:latest --registry-url=http://localhost:12345 --server-uuid=38947555-7742-3448-3784-823347823834
ExecStop=/usr/bin/docker stop metalprobe
[Install]
WantedBy=multi-user.target`,
Expand Down
2 changes: 1 addition & 1 deletion internal/ignition/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ systemd:
ExecStartPre=-/usr/bin/docker stop metalprobe
ExecStartPre=-/usr/bin/docker rm metalprobe
ExecStartPre=/usr/bin/docker pull {{.Image}}
ExecStart=/usr/bin/docker run --name metalprobe {{.Image}} {{.Flags}}
ExecStart=/usr/bin/docker run --network host --privileged --name metalprobe {{.Image}} {{.Flags}}
ExecStop=/usr/bin/docker stop metalprobe
[Install]
WantedBy=multi-user.target
Expand Down

0 comments on commit 1fb9b0f

Please sign in to comment.