# 您计划使用基于 Ubuntu Xenial 的 Docker 镜像多久？

**URL:** https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251
**Category:** Development
**Created:** [2018年八月8日 22:03 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251 "2018-08-08T22:03:16Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [2018年八月8日 22:03 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251/1 "2018-08-08T22:03:16Z")

</div>

Hello Discourse team,

I’m considering using Discourse with a Trisquel 8 Docker image, which should work because Trisquel 8 is based on Ubuntu Xenial. The reason I want to do this is so I can use a fully-free distribution instead of one that includes non-free bits here and there. There is no Trisquel 9 release based on Ubuntu Artful yet, so I was wondering how long you plan on sticking with Ubuntu Xenial? If you continue to use it for a year or two, I might be able to use Trisquel as a base image.

Thanks, : )  
Andrew

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [2018年八月8日 22:52 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251/2 "2018-08-08T22:52:55Z")

</div>

We have no specific plans to move off Xenial at the current time, but we consider the choice of distro inside the container to be an internal implementation detail, not a public interface, so we may well change the container distro at any time.

Incidentally, I think the inclusion of the `restricted` repo in our container image’s `sources.list` is unnecessary, and can probably be dropped. If we only use the DFSG-free `main` and `universe` repos, doesn’t that produce the same end result as using a different underlying distro?

---

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [2018年八月9日 15:14 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251/3 "2018-08-09T15:14:23Z")

</div>

Hello Matt,

Thanks for your reply. I started a conversation about the repo types here a while back:

> [@Docker image includes unneeded Ubuntu "restricted" (non-free) repo](https://meta.discourse.org/t/docker-image-includes-unneeded-ubuntu-restricted-non-free-repo/88931/2):
>
> I believe this come from our upstream docker image, at this line That line points to the official Ubuntu image from the Docker library which has this line: where it adds [this archive](https://github.com/tianon/docker-brew-ubuntu-core/blob/dist-amd64/xenial/ubuntu-xenial-core-cloudimg-amd64-root.tar.gz) that contains the restricted lines you found. I don’t know if there is an official Ubuntu docker image with those disabled.

Using `main` and `universe` alone would be a great improvement. Chances are that you won’t need anything outside of `main`.

The place I work at cares very much about using fully free distributions, so Ubuntu “man” alone might not be sufficient for our purposes, but I’ll talk to my team about it.

Thanks, 🙂  
Andrew

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2020年二月4日 01:44 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251/4 "2020-02-04T01:44:35Z")

</div>

我们已迁移至 Debian，且据我们所知未启用额外的软件源，因此这应能改善您的使用场景。

---

<div class="post-metadata">

### Author: ![sudoman](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sudoman](https://meta.discourse.org/u/sudoman)
#### Post date: [2020年二月4日 15:16 UTC](https://meta.discourse.org/t/how-long-do-you-plan-on-using-a-docker-image-based-on-ubuntu-xenial/94251/5 "2020-02-04T15:16:48Z")

</div>

确实如此！非常感谢您切换到 Debian main！: )
