Check control groups (If you see paths referencing /docker/, you’re most likely inside a container.)
cat /proc/1/cgroup
Check for .dockerenv
ls -la /.dockerenv
Check the hostname (random numbers and letters indicate docker container)
hostname
Related
Related Notes
All Related Notes
TABLE file.ctime as "Created", tags as "Tags"FROM "New Notes"WHERE contains(tags, "linux") OR contains(tags, "enumeration") OR contains(tags, "docker")SORT file.ctime DESC
linux
TABLE file.ctime as "Created", tags as "Tags"FROM "New Notes"WHERE contains(tags, "linux")SORT file.ctime DESC
enumeration
TABLE file.ctime as "Created", tags as "Tags"FROM "New Notes"WHERE contains(tags, "enumeration")SORT file.ctime DESC
docker
TABLE file.ctime as "Created", tags as "Tags"FROM "New Notes"WHERE contains(tags, "docker")SORT file.ctime DESC