Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wkdev-create: Add option 'no-pid' #76

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/host-only/wkdev-create
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ argsparse_use_option =name: "Name of container" default:wkdev
argsparse_use_option rm "Force removal of container if it already exists."
argsparse_use_option attach "Attach to container as it starts up."
argsparse_use_option no-pull "Do not login or pull images."
argsparse_use_option no-pid "Do not share pid namespace with the host."
argsparse_use_option list-tags "List available image tags."
argsparse_use_option =tag: "Create the container using a specific tag, see-also --list-tags." default:$(get_default_container_tag)

Expand Down Expand Up @@ -390,7 +391,9 @@ build_podman_create_arguments() {
# with PID 1 via dbus. Therefore one either has to provide a session within the
# container (use systemd init mechanism) or share the PID namespace with the host,
# and let 'systemctl --user' communicate with the host PID 1 (require systemd host).
arguments+=("--pid" "host")
if ! argsparse_is_option_set "no-pid"; then
arguments+=("--pid" "host")
fi

# Share IPC namepace with host -- otherwise /dev/shm access (e.g. in glxgears) won't work.
arguments+=("--ipc" "host")
Expand Down
Loading