docker container is not recognized

Bug #1786051 reported by Ssu Qlt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
virt-what (Ubuntu)
New
Undecided
Unassigned

Bug Description

lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

ii virt-what 1.18-2

===
fix: also check .dockerenv

# Check for Docker.
if [ -f "${root}/.dockerinit" -o -f "${root}/.dockerenv" ]; then
    echo docker
fi

Tags: docker
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.