2023更新至docker 23.0.1的問題


更新docker之後容器都暫停並出現以下錯誤

docker-compose up -d

Starting hexo-app ... error

ERROR: for hexo-app  Cannot start service app: 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

ERROR: for app  Cannot start service app: 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
ERROR: Encountered errors while bringing up the project.

問題在於Docker version 23.0.1, build a5ee5b1 需要apparmor
所以只要作業系統沒有安裝就會報錯

sudo apt install apparmor
sudo systemctl restart docker

安裝後重啓就可以運行了

這個issue是2021就提出的,但2023/02.有人提出更新到23.0.1會出錯

https://github.com/docker/for-linux/issues/1199#issuecomment-1432592259


Author: Hung-Lin, Chen
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source Hung-Lin, Chen !
 Previous
Makura v1.2.0 更新說明 Makura v1.2.0 更新說明
Makura的功能介紹可以看上一篇 Makura安裝與使用 - 批量下載NCBI genomes pip install makura==1.2.0 這篇介紹1.0.0到1.2.0之間增加的功能和修復的bug
2023-03-19
Next 
2022 Review雞腸道菌相分析方法 2022 Review雞腸道菌相分析方法
研究雞的腸道菌相除了要做基礎研究外,大多是為了提升生長和生產表現以及減少對抗生素依賴來看看近幾年的相關研究的菌相分析方法以及分析流程會使用到哪些工具
2022-12-19
  TOC