Skip to content

Commit

Permalink
common: set env var I_AM_IN_A_CONTAINER
Browse files Browse the repository at this point in the history
So any tool can detect whether it is actually running
from within a container.

Signed-off-by: Guillaume Abrioux <[email protected]>
(cherry picked from commit ea4c639)
  • Loading branch information
guits authored and dsavineau committed Dec 2, 2021
1 parent 2f496d1 commit 0715c60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daemon-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

FROM __ENV_[BASE_IMAGE]__

ENV I_AM_IN_A_CONTAINER 1

__DOCKERFILE_TRACEABILITY_LABELS__

ENV CEPH_VERSION __ENV_[CEPH_VERSION]__
Expand Down

0 comments on commit 0715c60

Please sign in to comment.