[英]Docker daemon not starting, even after reinstalling docker on ubuntu 18.04
[英]Broken Docker after last Ubuntu 18.04 update
上次 Ubuntu 更新后,有人對 Docker 有問題嗎? 我有 2 個項目,我在 ubuntu18.04 中由 docker-compose 運行。 兩個項目都運行良好,但在 *.yml 中進行 0 次更改后,我現在開始收到此錯誤。
internal/fs/utils.js:230
throw err;
^
Error: EACCES: permission denied, open '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
at Object.openSync (fs.js:461:3)
at Object.readFileSync (fs.js:363:35)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1166:22)
at Module.load (internal/modules/cjs/loader.js:996:32)
at Function.Module._load (internal/modules/cjs/loader.js:896:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
errno: -13,
syscall: 'open',
code: 'EACCES',
path: '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
}
ERROR: Service 'streaming-api' failed to build: The command '/bin/sh -c npm config set unsafe-perm true' returned a non-zero code: 1
我嘗試了一些命令來更改 Docker 中的權限,但沒有任何幫助。
它再次與 Docker 版本 19 一起使用,如 David 的類似問題中的回答所述。 答案來自oussama faleh 。
這是我在 Ubuntu 18.04 上安裝 docker 版本 19 的步驟:
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker -v
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.