上次Ubuntu 18.04更新后损坏的Docker [英] Broken Docker after last Ubuntu 18.04 update
本文介绍了上次Ubuntu 18.04更新后损坏的Docker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在上次Ubuntu更新之后,有人对Docker有问题吗?我在ubuntu18.04中有2个由docker-compose运行的项目。两个项目都运行良好,但是在* .yml Im中进行0更改后,现在开始出现此错误。
does anyone have problem with Docker after last Ubuntu update? Ive got 2 projects which I run by docker-compose in ubuntu18.04. Both projects worked fine, but after 0 changes in *.yml Im starting to get this error now.
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中的权限,但无济于事。
I tried some commands to change permissions in Docker but nothing helps.
推荐答案
如大卫的类似问题。答案来自 oussama faleh 。
这是我的在Ubuntu 18.04上安装Docker版本19的步骤:
Here my steps to install docker version 19 on Ubuntu 18.04:
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
这篇关于上次Ubuntu 18.04更新后损坏的Docker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文