---
title: Publishing LXD images
description: While some work remains to be done for ‘lxc publish’, the current support
  is sufficient to show a full cycle of image workload with lxd.Ubuntu wily comes
  with systemd by default.  Sometimes you might need a wily container with upstart.  And
  to repeatedly reproduce some tests on wily with upstart, you might want to create
  a container image […]
url: https://canonical.com/blog/publishing-lxd-images
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Canonical](https://canonical.com/blog/author/canonical "More about Canonical")

30 June 2015

# Publishing LXD images

[containers](https://canonical.com/blog/tag/containers)
[docker](https://canonical.com/blog/tag/docker)
[LXD](https://canonical.com/blog/tag/lxd)
[Ubuntu](https://canonical.com/blog/tag/ubuntu)
[Wily Werewolf](https://canonical.com/blog/tag/wily-werewolf)

---

Share the article

While some work remains to be done for ‘lxc publish’, the current support is sufficient to show a full cycle of image workload with lxd.

Ubuntu Wily comes with systemd by default. Sometimes you might need a Wily container with upstart. And to repeatedly reproduce some tests on Wily with upstart, you might want to create a container image.

```
# lxc remote add lxc images.linuxcontainers.org
# lxc launch lxc:ubuntu/wily/amd64 w1
# lxc exec w1 -- apt-get -y install upstart-bin upstart-sysv
# lxc stop w1
# lxc publish --public w1 --alias=wily-with-upstart
# lxc image copy wily-with-upstart remote:  # optional
```

Now you can start a new container using

```
# lxc launch wily-with-upstart w-test-1
# lxc exec w-test-1 -- ls -alh /sbin/init
lrwxrwxrwx 1 root root 7 May 18 10:20 /sbin/init -> upstart
# lxc exec w-test-1 run-my-tests
```

Importantly, because “–public” was passed to the lxc publish command, anyone who can reach your lxd server or the image server at “remote:” will also be able to use the image. Of course, for private images, don’t use “–public”.

### About the author

Serge Hallyn works for Canonical as a member of the Ubuntu Server team, with a particular focus on the virtualization stack. He has been involved with containers since the first upstream kernel patches for uts and pid namespaces. He was involved with LSM from the start, is listed as co-maintainer of the security subsystem and capabilities, and is a core maintainer of the LXC project.

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

In submitting this form, I confirm that I have read and agree to
[Canonical's Privacy Notice](https://canonical.com/legal/data-privacy/contact)
and [Privacy Policy](https://canonical.com/legal/data-privacy).

Sign up

## Share on

---

## Related posts

[### Bringing private, local inference to your desk with Lenovo, CIX Tech, and Canonical](https://canonical.com/blog/bringing-private-local-inference-to-your-desk-with-lenovo-cix-tech-and-canonical)

As people increasingly use AI to summarize personal documents, draft emails, and generate code, one of the key problems that has emerged is data privacy. Relying on cloud-based...

[Canonical](https://canonical.com/blog/author/canonical)

27 November 2026

[### Canonical and Huawei Kunpeng announce collaboration to deliver optimized Ubuntu and Ubuntu Pro on Kunpeng hardware](https://canonical.com/blog/canonical-huawei-kunpeng-announce-collaboration-optimized-ubuntu)

The collaboration combines Huawei Kunpeng’s advanced computing architecture with Canonical’s enterprise-grade open source software to accelerate cloud modernization, AI...

[Canonical](https://canonical.com/blog/author/canonical)

18 November 2026

[### Ubuntu Summit 26.10: Less than a week away!](https://canonical.com/blog/ubuntu-summit-26-10-less-than-a-week-away)

Ubuntu Summit 26.10: Less than a week away! Here in London, the long summer has stepped aside for cooler nights and damp, misty mornings. The trees are turning amber and the...

[Graham Morrison](https://canonical.com/blog/author/morrisong)

6 November 2026

[### MicroCloud and LXD LTS releases now available](https://canonical.com/blog/microcloud-and-lxd-lts-releases-2026)

Canonical announces the latest Long Term Supported (LTS) releases for MicroCloud and LXD

[Miona Aleksic](https://canonical.com/blog/author/mionaalex)

19 October 2026
