concept filesystem in category system administration

appears as: filesystem, filesystem, filesystems, The filesystem
Securing DevOps

This is an excerpt from Manning's book Securing DevOps.

Before you create the environment, you need to prepare the configuration of the invoicer application. Every application needs configuration parameters typically provided in configuration files on the filesystem of the application servers. Creating and updating those files, however, requires direct access to servers, which you want to avoid here.

If you’re running your own core infrastructure on which containers are instantiated, using cluster-management platforms like OpenStack, Kubernetes, or Docker Swarm, endpoint-security agents can be deployed on the base hosts and investigate both hosts and containers. This is possible because containers appear to the base host as regular processes and directories (unlike virtual machines that are slightly more isolated from their hosts). As an example, the following listing shows the processes and filesystem of the invoicer container as seen from the base host.

Listing 9.10 Inspecting the invoicer container from the host that runs it
$ ps faux    #1  
root      1271 /usr/bin/dockerd -H fd://
root      1427  \_ containerd -l unix:///var/run/docker/libcon...
root     17825      \_ containerd-shim 2185fd42f713c31...
10001    17843          \_ /bin/sh -c /app/invoicer /bin/bash
10001    17862              \_ /app/invoicer
$ tree /var/lib/docker/aufs/mnt/35d70a39c../app    #2  
├── invoicer
├── invoicer.db
└── statics
    ├── invoicer-cli.js
    ├── jquery-1.12.4.min.js
    └── style.css

#1   Container processes are children of the base dockerd process.
#2   The filesystem of the running container is browsable from the host.