Skip to content

Supporting custom namespace for exec#42

Merged
ahmetozer merged 4 commits intomasterfrom
feat/41
Sep 21, 2025
Merged

Supporting custom namespace for exec#42
ahmetozer merged 4 commits intomasterfrom
feat/41

Conversation

@ahmetozer
Copy link
Owner

Exec function is previously re executes commands in same space of the container.
Now it supports to use host or provide different namespace from process id or namespace file.

ex:

sandal run --rm --name test -lw / --tmp 10 --env-all -- ifconfig
sandal exec --env-all --ns-net host test -- ifconfig
sandal run --rm --name test -lw / --tmp 10 --env-all -- ifconfig
ip netns create test2
sandal exec --env-all --ns-net file:/var/run/netns/test2 test --  ifconfig
sandal run --rm --name test -lw / --tmp 10 --env-all --  ifconfig
sandal exec --env-all --ns-net  pid:200 test -- ifconfig

@ahmetozer ahmetozer merged commit 060a5ed into master Sep 21, 2025
2 checks passed
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.

1 participant