Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1062636
| From | Thomas Lange <lange@cs.uni-koeln.de> |
|---|---|
| Newsgroups | linux.debian.bugs.dist |
| Subject | Bug#989547: detect docker |
| Date | 2021-06-21 16:20 +0200 |
| Message-ID | <CssWl-5DF-1@gated-at.bofh.it> (permalink) |
| References | <ComFQ-14u-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Here's the info I got about detecting if FAI is run inside a docker container: Googling around, there are a few ways. It looks like this could be the most consistent: grep -E ":/docker/.+$" /proc/1/cgroup ..which is looking for cgroups under a docker cgroup It may be refined to: grep -E ":/docker/[0-9a-f]+$" /proc/1/cgroup ..but I can't say that for sure. What do you think, does that sound reasonable ? -- viele Grüße Thomas
Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread
Bug#989547: detect docker Thomas Lange <lange@cs.uni-koeln.de> - 2021-06-21 16:20 +0200 Bug#989547: detect docker Michael Prokop <mika@debian.org> - 2021-06-22 09:10 +0200
csiph-web