docker 无法将代码推送到新的Dokku容器:无法应用apparmor配置文件:apparmor无法应用配置文件

y0u0uwnf  于 2023-02-21  发布在  Docker
关注(0)|答案(1)|浏览(357)

在我的服务器上,我安装了dokku,并创建了一个新的应用程序:我的节点应用程序
$ dokku应用程序:创建myNodeApp
在我的本地repo上,我添加了dokku remote,现在我想在git add之后把现有代码推送到我的容器中。:

$ git push dokku main
Enumerating objects: 1119, done.
Counting objects: 100% (1119/1119), done.
Delta compression using up to 20 threads
Compressing objects: 100% (760/760), done.
Writing objects: 100% (1119/1119), 92.80 MiB | 11.25 MiB/s, done.
Total 1119 (delta 577), reused 727 (delta 310), pack-reused 0
remote: Resolving deltas: 100% (577/577), done.
-----> Set main to DOKKU_DEPLOY_BRANCH.
-----> Cleaning up...
-----> Building myNodeApp from herokuish
remote: time="2023-02-18T21:02:28Z" level=error msg="error waiting for container: "
remote: 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.
remote:  !     Failure extracting app code
remote:  !     Removing invalid image tag dokku/myNodeApp:latest
remote:  !     App build failed
To serversIP:myNodeApp
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'serversIP:myNodeApp'
(base)
1wnzp6jl

1wnzp6jl1#

这是a Docker issue。Docker v23意外地添加了一个对AppArmor的硬依赖项,v23.0.1实现了一个不正确的修复,将错误消息更改为您遇到的错误消息。
目前,修复方法是以下之一:
a)将Docker降级到v23以下
B)安装apparmor包(我还必须重新启动)
c)等待the issue for the new error得到修复

相关问题