docker framework does not install via ubuntu-device-flash
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Snappy |
High
|
Sergio Schvezov | ||
Bug Description
The Cloud Image team is looking at making images available with container frameworks pre-installed. However, we are unable to pre-install the Docker framework:
utlemming@
Determining oem configuration
Starting download of generic-amd64
40.93 KB / 40.93 KB [======
Done
Fetching information from server...
Downloading and setting up...
41.48 MB / 41.48 MB [======
97.68 MB / 97.68 MB [======
Installing generic-amd64
Starting download of generic-amd64
40.93 KB / 40.93 KB [======
Done
Installing docker
Starting download of docker
8.36 MB / 8.36 MB [======
Done
unable to unmount dir for image: umount: /tmp/diskimage0
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
panic: cannot unmap mounted partitions
goroutine 1 [running, locked to thread]:
launchpad.
/build/
main.func·005()
/build/
main.(*
/build/
main.func·004(0x0, 0x0)
/build/
main.(*
/build/
github.
/build/
main.main()
/build/
goroutine 5 [syscall, 1 minutes]:
os/signal.loop()
/usr/lib/
created by os/signal.init·1
/usr/lib/
goroutine 6 [chan receive, 1 minutes]:
launchpad.
/build/
created by launchpad.
/build/
goroutine 17 [syscall, 1 minutes, locked to thread]:
runtime.goexit()
/usr/lib/
goroutine 109 [select]:
net/http.
/usr/lib/
created by net/http.
/usr/lib/
goroutine 108 [IO wait]:
net.(*pollDesc)
/usr/lib/
net.(*pollDesc)
/usr/lib/
net.(*netFD)
/usr/lib/
net.(*conn)
/usr/lib/
crypto/
/usr/lib/
crypto/
/usr/lib/
crypto/
/usr/lib/
net/http.
/usr/lib/
net/http.
<autogenerated
bufio.(
/usr/lib/
bufio.(
/usr/lib/
net/http.
/usr/lib/
created by net/http.
/usr/lib/
goroutine 81 [chan receive, 1 minutes]:
main.func·003()
/build/
created by main.(*
/build/
| Ricardo Salveti (rsalveti) wrote : | #1 |
| Ricardo Salveti (rsalveti) wrote : | #2 |
Should we create a set of oem/gadgets that would include docker by default? Or you prefer using a generic oem and sideload additional snaps with --install?
| Changed in snappy: | |
| assignee: | nobody → Sergio Schvezov (sergiusens) |
| Oliver Grawert (ogra) wrote : | #3 |
btw, note that the "unable to unmount" error is most likely caused by using an outdated ubuntu-device-flash ...
| Sergio Schvezov (sergiusens) wrote : | #4 |
ubuntu-device-flash 0.24-0ubuntu2 allows running with --install docker
| Ricardo Salveti (rsalveti) wrote : | #5 |
Can you give the PPA https:/
With that PPA (and ubuntu-device-flash 0.24-0ubuntu2), I was able to create an image with docker pre-installed:
rsalveti@
[sudo] password for rsalveti:
Determining oem configuration
Starting download of generic-amd64
40.93 KB / 40.93 KB [] 100.00 % 89.51 KB/s
Done
Fetching information from server...
Downloading and setting up...
Installing generic-amd64
Starting download of generic-amd64
40.93 KB / 40.93 KB [] 100.00 % 89.25 KB/s
Done
Installing docker
Starting download of docker
8.36 MB / 8.36 MB [_] 100.00 % 617.14 KB/s
Done
Enabling developer mode...
New image complete
Summary:
Output: x86.img
Architecture: amd64
Channel: edge
Version: 92
Launch by running: kvm -m 768 x86.img
| Changed in snappy: | |
| status: | Confirmed → Fix Committed |
| Michał Sawicz (saviq) wrote : | #6 |
I had a similar error and the -proposed PPA did help (after a reboot, as I had some stale mounts and loop devices).
| Changed in snappy: | |
| status: | Fix Committed → Fix Released |


With latest ubuntu-device-flash (from trunk) the error is different, and still fails: evasys: /tmp/snappy$ sudo ubuntu-device-flash core 15.04 --channel edge --enable-ssh --developer-mode --install=docker --output x86.img ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ] 100.00 % 58.47 KB/s ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ] 100.00 % 87.16 KB/s ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ======= =] 100.00 % 498.45 KB/s
rsalveti@
Determining oem configuration
Starting download of generic-amd64
40.93 KB / 40.93 KB [======
Done
Fetching information from server...
Downloading and setting up...
Installing generic-amd64
Starting download of generic-amd64
40.93 KB / 40.93 KB [======
Done
Installing docker
Starting download of docker
8.36 MB / 8.36 MB [======
Done
docker failed to install: exit status 1