Vulnerability & Exploit Database

Back to search

Linux Gather Container Detection

This module attempts to determine whether the system is running inside of a container and if so, which one. This module supports detection of Docker, LXC, and systemd nspawn.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • James Otten <jamesotten1 [at]>


  • linux



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use post/linux/gather/checkcontainer msf post(checkcontainer) > sessions ...sessions... msf post(checkcontainer) > set SESSION <session-id> msf post(checkcontainer) > show options and set options... msf post(checkcontainer) > run