-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
area/security/apparmorkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Milestone
Description
Description
Ubuntu 20.10 uses AppArmor parser that reports the version 3.0.0-beta1. Output from apparmor_parser --version:
AppArmor parser version 3.0.0-beta1
Copyright (C) 1999-2008 Novell Inc.
Copyright 2009-2018 Canonical Ltd.
This leads to the following error:
ERROR: Service '***' failed to build : AppArmor enabled on system but the docker-default profile could not be loaded: strconv.Atoi: parsing "0-beta1": invalid syntax
This issue is probably related to this function:
Line 49 in 8e610b2
| func parseVersion(output string) (int, error) { |
Steps to reproduce the issue:
- Use Ubuntu 20.10 or a beta version of AppArmor.
- Build a Docker image.
Output of docker version:
Docker version 19.03.13, build 4484c46d9d
Output of docker info:
Client:
Debug Mode: false
Server:
Containers: 41
Running: 0
Paused: 0
Stopped: 41
Images: 1537
Server Version: 19.03.13
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
init version: fec3683
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.8.0-20-generic
Operating System: Ubuntu Groovy Gorilla (development branch)
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 15.26GiB
Name: falcon
ID: YBN5:BSM7:JVWU:374Q:RUU7:WLRE:VGF7:Q4UK:YND4:KBXJ:RPB5:6LTM
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 20.10 installed on a physical device.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/security/apparmorkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.