$ docker images
$ docker version
$ docker search tutorial
$ docker pull ubuntu:trusty
$ docker run ubuntu:trusty uptime
$ docker run -i -t ubuntu:trusty /bin/sh
In other terminal:
$ docker ps -l
$ docker stop <container id from ps -l>
(/bin/sh from other terminal should now be stopped)
$ docker-privilege status
Actual status (by the file, not by audit) is:
/var/lib/apparmor/profiles/profile_docker_docker-daemon_1.5.0.001:###UNPRIVILEGED###
$ docker-privilege on
enabling privilege mode
$ docker-privilege status
Actual status (by the file, not by audit) is:
/var/lib/apparmor/profiles/profile_docker_docker-daemon_1.5.0.001:###PRIVILEGED###
$ docker-privilege off
disabling privilege mode
$ docker-privilege status
Actual status (by the file, not by audit) is:
/var/lib/apparmor/profiles/profile_docker_docker-daemon_1.5.0.001:###UNPRIVILEGED###