How to run snappy from inside Docker - systemd issues?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snappy |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I'm trying to run snappy via the official Ubuntu Xenial docker image:
docker run -it ubuntu # Xenial: Docker Image ID: 44776f55294a
That does a wonderful job of downloading any necessary images or updates, and giving me an interactive prompt inside a fresh new Xenial container.
Inside that container, I run
apt install -y snapd
snap list
But I get "error: cannot list snaps: cannot communicate with server: Get http://
This is presumably because the snap daemon isn't running or can't be found. Trying to find out why that might be leads to a maze of twisty passages filled with graffiti documenting the fights between systemd, docker and runC:
Systemd vs. Docker [LWN.net]
https:/
Motivation: I want to play with snaps, but haven't upgraded to Xenial yet. Docker is generally an easy way to try out features of a new version of Ubuntu.
I'm using Docker version 1.11.1, build 5604cbe running on Ubuntu Trusty 14.04.
At a minimum, we need a better error message, and a description of either how to get it working, or why this is just a bad idea, along with other options for doing all things snappy for folks that like Docker.
I don't believe snaps will work inside a Docker container, at least not
for a while, but let's definitely get a cleaner error message in place.
Mark