This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve detection of containerized environments - fix issue #1732
The code determining if Portus is running containerized is broken on Kubernetes because in this case PID 1 doesn't belong to the `docker` cgroup slice. That causes the code to invoke `hostnamectl`, that tries to access kdbus from within a container. That causes Rails to fail immediately. Signed-off-by: Flavio Castelli <[email protected]>
- Loading branch information