[lxc-users] Serge Hallyn's article "Publishing LXD images"

david.andel at bli.uzh.ch david.andel at bli.uzh.ch
Mon Dec 7 12:03:28 UTC 2015


Hi all

In his article "Publishing LXD images", Serge Hallyn writes:
# lxc launch lxc:ubuntu/wily/amd64 w1 # lxc exec w1 -- apt-get -y install upstart-bin upstart-sysv

However, this does not work, since the wily container does not have an IP address (I have used "wily" as a name instead of "w1"):

david at kimera:~$ lxc list
+--------+---------+-----------+------+-----------+-----------+
|  NAME  |  STATE  |   IPV4    | IPV6 | EPHEMERAL | SNAPSHOTS |
+--------+---------+-----------+------+-----------+-----------+
| trusty | RUNNING | 10.0.3.54 |      | NO        |         0 |
| wily   | RUNNING |           |      | NO        |         0 |
+--------+---------+-----------+------+-----------+-----------+
david at kimera:~$ lxc image list
+-------+--------------+--------+-----------------------+--------+---------+------------------------------+
| ALIAS | FINGERPRINT  | PUBLIC |      DESCRIPTION      |  ARCH  |  SIZE   |         UPLOAD DATE          |
+-------+--------------+--------+-----------------------+--------+---------+------------------------------+
|       | 1a62876f8e08 | no     | Ubuntu wily (amd64)   | x86_64 | 74.51MB | Dec 7, 2015 at 12:32pm (CET) |
|       | 23f3395b9409 | no     | Ubuntu trusty (amd64) | x86_64 | 64.57MB | Nov 30, 2015 at 6:57pm (CET) |
+-------+--------------+--------+-----------------------+--------+---------+------------------------------+

Therefore apt-get naturally fails.

How can this be accomplished? I am interested in exactly this, a wily container with upstart.

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151207/18a8d0e4/attachment.html>


More information about the lxc-users mailing list