commit | 5236e584f021a9b4846dceefb2d40a465847bd16 | [log] [tgz] |
---|---|---|
author | Jess Frazelle <acidburn@google.com> | Thu Aug 03 23:10:03 2017 -0400 |
committer | Jess Frazelle <acidburn@google.com> | Thu Aug 03 23:10:03 2017 -0400 |
tree | fae7ec24d8fa035cb3051de5a1548f32935ffcab | |
parent | 852ff984233389c5bf9ae357cbc06118f71a7cea [diff] |
add more functionality Signed-off-by: Jess Frazelle <acidburn@google.com>
Container introspection tool. Find out what container runtime is being used as well as features available.
$ go get github.com/jessfraz/amicontained
$ amicontained -h
***Docker
$ docker run --rm -it r.j3ss.co/amicontained Container Runtime: docker Host PID Namespace: false AppArmor Profile: docker-default (enforce) User Namespace: true User Namespace Mappings: Container -> 0 Host -> 886432 Range -> 65536 $ docker run --rm -it --pid host r.j3ss.co/amicontained Container Runtime: docker Host PID Namespace: true AppArmor Profile: docker-default (enforce) User Namespace: false $ docker run --rm -it --security-opt "apparmor=unconfined" r.j3ss.co/amicontained Container Runtime: docker Host PID Namespace: false AppArmor Profile: unconfined User Namespace: false
unshare
$ sudo unshare --user -r root@coreos:/home/jessie/.go/src/github.com/jessfraz/amicontained# ./amicontained Container Runtime: not-found Host PID Namespace: true AppArmor Profile: unconfined User Namespace: true User Namespace Mappings: Container -> 0 Host -> 0 Range -> 1