The new Docker Hub is available in beta try it here
OFFICIAL REPOUpdated 2 weeks, 3 days ago


Ubuntu is a Debian-based Linux operating system based on free software.

Supported tags and respective Dockerfile links

For more information about this image and its history, please see the relevant manifest file (library/ubuntu) in the docker-library/official-images GitHub repo.

What is Ubuntu?

Ubuntu is a Debian-based Linux operating system, with Unity as its default desktop environment. It is based on free software and named after the Southern African philosophy of ubuntu (literally, “human-ness”), which often is translated as “humanity towards others” or “the belief in a universal bond of sharing that connects all humanity”.

Development of Ubuntu is led by UK-based Canonical Ltd., a company owned by South African entrepreneur Mark Shuttleworth. Canonical generates revenue through the sale of technical support and other services related to Ubuntu. The Ubuntu project is publicly committed to the principles of open-source software development; people are encouraged to use free software, study how it works, improve upon it, and distribute it.


What's in this image?



$ docker run ubuntu:14.04 grep -v '^#' /etc/apt/sources.list

deb trusty main restricted
deb-src trusty main restricted

deb trusty-updates main restricted
deb-src trusty-updates main restricted

deb trusty universe
deb-src trusty universe
deb trusty-updates universe
deb-src trusty-updates universe

deb trusty-security main restricted
deb-src trusty-security main restricted
deb trusty-security universe
deb-src trusty-security universe


$ docker run ubuntu:12.04 cat /etc/apt/sources.list

deb precise main restricted
deb-src precise main restricted

deb precise-updates main restricted
deb-src precise-updates main restricted

deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe

deb precise-security main restricted
deb-src precise-security main restricted
deb precise-security universe
deb-src precise-security universe

Supported Docker versions

This image is officially supported on Docker version 1.7.1.

Support for older versions (down to 1.0) is provided on a best-effort basis.

User Feedback


Documentation for this image is stored in the ubuntu/ directory of the docker-library/docs GitHub repo. Be sure to familiarize yourself with the repository's file before attempting a pull request.


If you have any problems with or questions about this image, please contact us through a GitHub issue.

You can also reach many of the official image maintainers via the #docker-library IRC channel on Freenode.


You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.


2 days, 10 hours ago
profile picturephdbrianlee

Get:24 trusty-security/universe amd64 Packages [144 kB] Fetched 21.0 MB in 28s (733 kB/s) W: Failed to fetch Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead. is there anyone can help?

1 week, 3 days ago
profile picturehouchaohan


1 month, 3 weeks ago
profile picturejamesdcl

Can I use “FROM ubuntu@sha256:e2ff67c8f9bb7e1eda3ec573fd8ac74b976d170d9e13babc5c5035f4443af744” to build a image base on ubuntu:trusty? It seems like the digest of trusty is “sha256:e2ff67c8f9bb7e1eda3ec573fd8ac74b976d170d9e13babc5c5035f4443af744”

3 months ago
profile picturermgraham

@thaniyarasu these are containers, not VMs, so the kernel is provided by the host.

3 months, 1 week ago
profile picturethaniyarasu

is this ubuntu image updated to linux kernel 3.19.* ? my host is ubuntu 14.10 with kernel is 3.16.0-34-generic today i did docker pull ubuntu:15.04 docker run -i -t ubuntu:15.04 /bin/bash root@sdf34rdsf:~$ uname -a


but says that they have upgraded kernel version to 3.19.* is this “official ubuntu image” updated one ? or should i update my host os from ubuntu 14.10 to 15.04 ?

3 months, 2 weeks ago
profile picturekuahyeow

Seems to be AMD64, looking at the Dockerfile for precise

4 months, 2 weeks ago
profile picturepreeth

is there any option to allocate processors (of host machine) to docker containers??

5 months, 4 weeks ago
profile picturedavidshen84

Is it a 32bit image, or 64bit image?

6 months ago
profile picturedavidschou

@seanlook you can do this to quickly see what version you have $ docker run -t -i ubuntu cat /etc/issue Ubuntu 14.04.1 LTS \n \l

7 months ago
profile pictureeggtree

@seanloook Looking at the manifest file ( ubuntu:latest points at the most recent image of the Ubuntu LTS version, currently 14.04.01

7 months, 1 week ago
profile pictureseanloook

After executing $ sudo docker pull ubuntu, I got ubuntu:latest but I do not know ubuntu version.

7 months, 3 weeks ago
profile picturedimdung

thanks Wasseem, I was able to do so. thanks once again, :)


7 months, 3 weeks ago
profile picturewasseem4redboxdigital

@dimdung: If you reboot the host while having an active container running, then that container will be in 'stop' mode. But after your host starts again, you will still see the presence of your container, but in 'exit' status. So to restart your container, you will need to: $ docker start -t -i -a ID_OF_YOUR_CONTAINER

The above command is same as: $ docker start ID_OF_YOUR_CONTAINER $ docker attach ID_OF_YOUR_CONTAINER


7 months, 3 weeks ago
profile picturedimdung

I'm new on Docker, what happens if reboot the host server where I've installed docker container?

10 months, 1 week ago
profile picturellucax

It seems to be safe now: docker run -i -t ubuntu /bin/bash root@a48ba8e5bb17:/# X="() { :;} ; echo busted" /bin/bash -c "echo stuff" /bin/bash: warning: X: ignoring function definition attempt /bin/bash: error importing function definition for `X' stuff

10 months, 1 week ago
profile pictureicecreammatt

The current 14.04 is also still vulnerable.

docker pull ubuntu
docker run -i -t ubuntu:14.04 /bin/bash
root@a69d3c3de6d5:/# X="() { :;} ; echo busted" /bin/bash -c "echo stuff"
10 months, 1 week ago
profile picturesrus

The current 12.04 image is vulnerable to the Bash bug, so meanwhile remember to run:

apt-get update && apt-get dist-upgrade

10 months, 1 week ago
profile pictureboffbowsh

When will this be updated with the patch for the bash exploit? :/

10 months, 2 weeks ago
profile picturenithyakathiresan

How to install java on top of ubuntu image??

10 months, 2 weeks ago
profile picturedangtrinhnt

14.04 comes with only Python3. I cannot install python2.7 on my image. Any idea?

10 months, 2 weeks ago
profile picturezhuzhichao

非常不错,下载一个 14.04 玩玩。

11 months ago
profile picturejxdeveloper

“ If you don't specify a variant, for example you just use ubuntu, then Docker will default to using the ubuntu:latest image. ” The answer is found from link,

11 months ago
profile picturejxdeveloper

Hi, I was wondering which image is the default when it's not specified. Thanks for any help on my silly question.

11 months, 1 week ago
profile picturefrosquin

Could you not set CMD here, please?

This is quite confusing when you FROM ubuntu, and you keep getting /bin/bash appended to your ENTRYPOINT

Thank you

1 year ago
profile pictureindiepopart

Hi! I got confused by the links in “Installed packages” section, they all point to trusty.

1 year, 1 month ago
profile picturerosstimson

14.04 and trusty tags seem to be different, latest points to the same container as trusty. What is the reason for the difference as I'm now somewhat confused as to which tag would be best used as my base when writing dockerfiles?

ubuntu 14.04 e54ca5efa2e9 13 days ago 276.5 MB ubuntu trusty ef83896b7fb9 7 days ago 192.7 MB ubuntu latest ef83896b7fb9 7 days ago 192.7 MB

1 year, 2 months ago
profile picturejlhawn

Can't wait to start using 14.04 as a base for all of my projects.

1 year, 3 months ago
profile picturefitbur

Just ran the following: docker run -i -t ubuntu:14.04 bash


Unable to find image 'ubuntu:14.04' locally Pulling repository ubuntu 99ec81b80c55: Error pulling image (14.04) from ubuntu, Driver aufs failed to create image rootfs 5e66087f3ffe002664507d225d07b6929843c3f0299f5335a70c1727c8833737: mkdir /var/lib/docker/aufs/mnt/5e66087f3ffe002664507d225d07b6929843c3f0299f532014/04/27 13:12:33 Could not find repository on any of the indexed registries.

1 year, 3 months ago
profile picturethatcher

14.04 has arrived!

1 year, 3 months ago
profile pictureruudk

+1 for 14.04 LTS

1 year, 3 months ago
profile picturentran013

+1 for 14.04

1 year, 3 months ago
profile picturejdash

Another +1 for 14.04 there is a commit on the repo for it that someone did an hour ago.

1 year, 3 months ago
profile pictureshreyask

+1 for 14.04

1 year, 3 months ago
profile picturekleberng1990

+1 for 14.04

1 year, 3 months ago
profile pictureschickling

+1 for 14.04

1 year, 3 months ago
profile picturedownwind

Another vote for 14.04 LTS.

1 year, 3 months ago
profile picturefitbur

+1 for adding Ubuntu 14.04 LTS.

1 year, 3 months ago
profile picturehamiltont

@byrongibson - 12.04 equals precise here, which you can see by looking at the Image ID column

1 year, 3 months ago
profile picturebyrongibson

Is there a difference between named tags and numbered tags? Eg, does precise exactly equal 12.04, or are there differences?

1 year, 4 months ago
profile picturewaitingkuo

when will you provide ubuntu 14.04?

1 year, 5 months ago
profile picturewizardcxy


1 year, 5 months ago
profile picturestucki

It seems like this image was updated recently. The “universe” section is now included by default (at least in ubuntu:12.04).

Wondering if Dockerfiles can check if a user is using the latest version of this image?

1 year, 5 months ago
profile picturecharlesmerriam

The Short Description should be updated.

General use Ubuntu base image. Tags available are “latest” (equivalent to the tags “precise” and “12.04”), “saucy” (“13.10”), “raring” (“13.04”), “quantel” (“12.10”), and “lucid” (“10.04”). The “latest” tag is equivalent to the most recent Long Term Support (LTS) release of Ubuntu. This image replaces the deprecated “base” image.

1 year, 7 months ago
profile picturemdemo

: )

1 year, 8 months ago
profile picturecontiamo

Any plans on advancing this base image to raring/saucy? The stackbrew images work just fine, we would however prefer “official” base images.

1 year, 9 months ago
profile pictureadrianlzt

nice to see comments!

1 year, 9 months ago
profile picturerufus

upon this rock I shall build my container.