Snappy Ubuntu Core:Snap 安装不会复制文件

Snappy Ubuntu Core:Snap 安装不会复制文件

我按照此处的说明创建了一个运行 Snappy Ubuntu Core 15.04 amd64 的 Docker 基础映像:https://askubuntu.com/a/577248/495667(你可以从 Dockerhub 获取我的图像:https://hub.docker.com/r/mrjogo/snappy/)。但是,当我尝试在容器内安装 snap 时,它无法正确复制文件(请注意,我以 root 身份运行):

# rsyslogd

# snappy install hello-world
Installing hello-world
Starting download of hello-world
21.60 KB / 21.60 KB [====================================] 100.00 % 135.39 KB/s 
Done
Starting download of icon for package
33.77 KB / 33.77 KB [====================================] 100.00 % 209.61 KB/s 
Done
Name          Date       Version Developer 
ubuntu-core   2016-01-15 12      ubuntu    
hello-world   2016-01-20 1.0.18  canonical 
webdm         2016-01-15 0.11    canonical 
generic-amd64 2016-01-15 1.4     canonical 

# showdev
bash: showdev: command not found

# /apps/hello-world.canonical/1.0.18/bin/showdev 
Hello /dev World: Here is what I can see with 'find /dev/'
/dev/
/dev/log
/dev/kcore
/dev/stderr
/dev/stdout
/dev/stdin
/dev/fd
/dev/console
/dev/ptmx
/dev/random
/dev/urandom
/dev/tty
/dev/full
/dev/zero
/dev/null
/dev/fuse
/dev/mqueue
/dev/shm
/dev/pts
/dev/pts/ptmx

Here is hardware that has been assigned to me ():

# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# ls /bin | grep showdev

# 

(附注:不确定为什么,但我必须手动启动 rsyslogd,否则会出现记录器错误)

由于我刚开始使用 snappy,我不确定这是否与容器的创建方式、运行方式有关,是否误解了 snap 的安装方式,或者是否存在错误。希望得到一些指导。

答案1

您应该运行以下命令

# hello-world.showdev

相关内容