containers / containers/bubblewrap

Parameter to clear all environment variables

Open
#281 4 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
8.7k
Forks
386
Avg merge
3d 17h
Merged PRs (30d)
11

Description

In our use case, we have a full environment defined for a container. We want to define only those and we do want to inherit any environment variable from host.

The current way to do it is to add `--unsetenv` parameters for every environment variable from host, before `--setenv` parameters.

This use case should be frequent enough for a `--clearenv` parameter to exist. This parameter would remove all environment variables. The command line would not need to depend on host environment variables.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.