<p>The answer to the question "is there a Dockerfile for that, as well?"</p>

<p><a href="https://github.com/tianon/docker-brew-ubuntu-core/tree/dist-amd64" rel="nofollow noreferrer">https://github.com/tianon/docker-brew-ubuntu-core/tree/dist-amd64</a></p>

<p>Note their git branches contain the actual release build based on architecture.</p>

CC BY-SA 4.0
2018-11-07T04:25:10.020Z
2018-11-07T04:25:10.020Z
mino
<p>Most Dockerfiles start from a parent image. If you need to completely control the contents of your image, you might need to create a base image instead.
A base image either has no <code>FROM</code> line in its <code>Dockerfile</code>, or has <code>FROM</code> scratch.</p>

<h3>Create a full image using tar</h3>

<p>In general, start with a working machine that is running the distribution you’d like to package as a parent image, though that is not required for some tools like Debian’s Debootstrap, which you can also use to build Ubuntu images.</p>

<p>There are more example scripts for creating parent images in the Docker GitHub Repo:</p>

<pre><code>BusyBox
CentOS / Scientific Linux CERN (SLC) on Debian/Ubuntu or on CentOS/RHEL/SLC/etc.
Debian / Ubuntu
</code></pre>

<h3><a href="https://docs.docker.com/develop/develop-images/baseimages/" rel="nofollow noreferrer">Create a base image</a></h3>

<p>I guess after creating you can export this on docker hub with <code>Dockerfile</code>.</p>

CC BY-SA 4.0
2018-10-18T10:45:00.427Z
2018-11-06T12:14:16.863Z
2018-11-06T12:14:16.863Z
hakkican
<p>You can walk backward in DockerFile. You can uninstall/cleanup "groups" "packages" to slim down. You can create your custom minimal image from that cloud image.It is like just a snapshot of a specific image at some point.</p>

<p>This is the minimal position. This is when the baby is born.</p>

<p><a href="https://hub.docker.com/_/hello-world/" rel="nofollow noreferrer">docker pull hello-world</a></p>

<p><a href="https://github.com/docker-library/hello-world/blob/master/Dockerfile-linux.template" rel="nofollow noreferrer">Dockerfile-linux.template</a></p>

<p>You may want to look at kickstart/preseed if you want deep-diving.It is about being an official image or some image on which you have full control.
]<a href="https://github.com/docker-library/hello-world/blob/master/Dockerfile-linux.template" rel="nofollow noreferrer">2</a></p>

CC BY-SA 4.0
2018-11-07T06:42:10.787Z
2018-11-07T07:37:31.787Z
2018-11-07T07:37:31.787Z
hakkican
<p>While for Debian you find on Docker Hub "slim" distributions, it seems not the case with Ubuntu.</p>

<p>Now there is a "<a href="https://cloud-images.ubuntu.com/minimal/releases/bionic/release-20180814/" rel="nofollow noreferrer">minimal Ubuntu for public clouds</a>" distro from Canonical, but I can find just cloud VM images; is there a Dockerfile for that, as well?</p>

<linux><dockerfile><cloud>
Availability/Reproducibility of Ubuntu Minimal as Docker image
Ta Mu
# Availability/Reproducibility of Ubuntu Minimal as Docker image

(Asked by: username_0 on 2018-10-17)

While for Debian you find on Docker Hub "slim" distributions, it seems not the case with Ubuntu.

Now there is a "[minimal Ubuntu for public clouds](https://cloud-images.ubuntu.com/minimal/releases/bionic/release-20180814/)" distro from Canonical, but I can find just cloud VM images; is there a Dockerfile for that, as well?

**Tags:** linux, dockerfile, cloud


---

## 3 answers

### Answer by username_1 on 2018-11-07. Score: 2 | Accepted answer

The answer to the question "is there a Dockerfile for that, as well?"

<https://github.com/tianon/docker-brew-ubuntu-core/tree/dist-amd64>

Note their git branches contain the actual release build based on architecture.


---

### Answer by username_2 on 2018-10-18. Score: 0

Most Dockerfiles start from a parent image. If you need to completely control the contents of your image, you might need to create a base image instead.
A base image either has no FROM line in its Dockerfile, or has FROM scratch.
Create a full image using tar
In general, start with a working machine that is running the distribution you’d like to package as a parent image, though that is not required for some tools like Debian’s Debootstrap, which you can also use to build Ubuntu images.
There are more example scripts for creating parent images in the Docker GitHub Repo:
BusyBox
CentOS / Scientific Linux CERN (SLC) on Debian/Ubuntu or on CentOS/RHEL/SLC/etc.
Debian / Ubuntu

Create a base image
I guess after creating you can export this on docker hub with Dockerfile.


---

### Answer by username_2 on 2018-11-07. Score: 0

You can walk backward in DockerFile. You can uninstall/cleanup "groups" "packages" to slim down. You can create your custom minimal image from that cloud image.It is like just a snapshot of a specific image at some point.

This is the minimal position. This is when the baby is born.

[docker pull hello-world](https://hub.docker.com/_/hello-world/)

[Dockerfile-linux.template](https://github.com/docker-library/hello-world/blob/master/Dockerfile-linux.template)

You may want to look at kickstart/preseed if you want deep-diving.It is about being an official image or some image on which you have full control.
][2](https://github.com/docker-library/hello-world/blob/master/Dockerfile-linux.template)


---

