如果我尝试在 gitlab-CI 管道下运行 snap,安装最简单的包,它会失败并显示:
$ snap install hello-world
错误:无法与服务器通信:发布 http://localhost/v2/snaps/hello-world:拨打 unix /run/snapd.socket:连接:没有这样的文件或目录
gitlab-ci yml 配置文件是有史以来最简单的:
image: ubuntu:18.04
before_script:
- apt-get update -qq
test:
script:
- apt-get install -y snapd
- snap version
- snap install hello-world
- hello-world
这是怎么回事?