5. 去掉sudo运行后还是报错
root
@yebeiwifi:~# service apparmor stop
Failed to stop apparmor.service: Unit apparmor.service not loaded.
root
@yebeiwifi:~# update-rc.d -f apparmor remove
root
@yebeiwifi:~# docker run -d --name ddns-go --restart=always --net=host -v /ddns-go:/root jeessy/ddns-go /bin/sh
Unable to find image 'jeessy/ddns-go:latest' locally
latest: Pulling from jeessy/ddns-go
9b3977197b4f: Pull complete
221752ba9a3c: Retrying in 12 seconds
a9c40c9b828d: Retrying in 1 second
92b3577542de: Retrying in 1 second
latest: Pulling from jeessy/ddns-go
af6eaf76a39c: Pull complete
f8a75cc1ba2e: Pull complete
728bfada2881: Pull complete
4140bb0859ec: Pull complete
fb6292562984: Pull complete
Digest: sha256:daff5927b7ca4fd4a0f65ca992d29222b4da944ccdabcf4d25f486f16411efde
Status: Downloaded newer image for jeessy/ddns-go:latest
58a2798974bbd286d388b5b26baf70f785dfcfc3f6b03f51a09d884a38423626
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: unable to apply apparmor profile: apparmor failed to apply profile: write /proc/self/attr/apparmor/exec: no such file or directory: unknown.