从docker容器内部``快照''失败


10

我从hub.docker.com提取了最新的Ubuntu映像

$ docker pull ubuntu

一切都下载正确,所以我启动了容器

$ docker run -it ubuntu

snapd装进了容器

# apt update
...
All packages are up to date.
# apt install snapd
Get:1 http://security.ubuntu.com/...
...
done.

当我尝试登录时,出现故障

# snap login
2017/04/20 18:06:04.729212 main.go:220: WARNING: cannot create syslog logger
Email address: <me@email.com>
Password of "me@email.com":
error: cannot communicate with server: Post http://localhost/v2/login: dial unix /run/snapd-snap.socket: connect: no such file or directory

我什至试图sudo确保...

# sudo snap login
bash: sudo: command not found

snapd守护进程似乎未在运行,您能否将systemctl status snapd.s*
user.dz

@ user.dzFailed to connect to bus: No such file or directory
Zachary

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.