I followed the installation guide for Ubuntu (16.04 LTS) here: https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/#install-using-the-repository
Everything went OK until the final run of hello-world:
$ sudo docker run hello-world
docker: Error response from daemon: AppArmor enabled on system but the docker-default profile could not be loaded: running `/sbin/apparmor_parser apparmor_parser -Kr /var/lib/docker/tmp/docker-default155079956` failed with output: AppArmor parser error for /var/lib/docker/tmp/docker-default155079956 in /etc/apparmor.d/tunables/kernelvars at line 16: syntax error, unexpected TOK_SET_VAR, expecting TOK_END_OF_RULE
error: exit status 1.
ERRO[0000] error waiting for container: context canceled
I tried searching for parts of the exact error message and looked through some threads.
I’m aware of the apparmor page from Docker, but it seems geared to a level far beyond what I’m trying to accomplish.
This is a fresh install of Docker and, as far as I know, I have never had to do anything with AppArmor before.
Because the file was referenced:
$ cat /etc/apparmor.d/tunables/kernelvars
# Copyright (C) 2012 Canonical Ltd.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General Public
# License published by the Free Software Foundation.
#
# ------------------------------------------------------------------
# This file should contain declarations to kernel vars or variables
# that will become kernel vars at some point
# until kernel vars are implemented
# and until the parser supports nested groupings like
# @{pid}=[1-9]{[0-9]{[0-9]{[0-9]{[0-9]{[0-9],},},},},}
# use
@{pid}={[1-9],[1-9][0-9],[1-9][0-9][0-9],[1-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9],[1-9][0-9][0-9][0-9][0-9][0-9]}
#same pattern as @{pid} for now
@{tid}=@{pid}
#A pattern for pids that can appear
@{pids}=@{pid}
Thanks in advance for any help!
P.S. I had linked to all the pages I referenced but am only allowed two links