OFFICIAL REPOUpdated 3 days, 17 hours ago


Official Ubuntu base image

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.



$ 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.5.0.

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

User Feedback


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.


1 week, 2 days ago
profile picturepreeth

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

1 month, 3 weeks ago
profile picturedavidshen84

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

2 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

2 months, 3 weeks 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

3 months ago
profile pictureseanloook

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

3 months, 2 weeks ago
profile picturedimdung

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


3 months, 2 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


3 months, 2 weeks ago
profile picturedimdung

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

6 months 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

6 months 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"
6 months 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

6 months ago
profile pictureboffbowsh

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

6 months, 1 week ago
profile picturenithyakathiresan

How to install java on top of ubuntu image??

6 months, 1 week ago
profile picturedangtrinhnt

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

6 months, 1 week ago
profile picturezhuzhichao

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

6 months, 3 weeks 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,

6 months, 4 weeks 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.

7 months 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

7 months, 4 weeks ago
profile pictureindiepopart

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

8 months, 4 weeks 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

10 months ago
profile picturejlhawn

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

11 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.

11 months, 1 week ago
profile picturethatcher

14.04 has arrived!

11 months, 1 week ago
profile pictureruudk

+1 for 14.04 LTS

11 months, 1 week ago
profile picturentran013

+1 for 14.04

11 months, 1 week ago
profile picturejdash

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

11 months, 1 week ago
profile pictureshreyask

+1 for 14.04

11 months, 1 week ago
profile picturekleberng1990

+1 for 14.04

11 months, 1 week ago
profile pictureschickling

+1 for 14.04

11 months, 1 week ago
profile picturedownwind

Another vote for 14.04 LTS.

11 months, 1 week ago
profile picturefitbur

+1 for adding Ubuntu 14.04 LTS.

11 months, 1 week ago
profile picturesysadminnovate

Will 14.04 be included soon or do you know a 14.04 image that I can trust not to be a beta? There are many images in the repo that are simply called 'Tahr' or 'Trusty' and I have no idea if they're beta or final.

11 months, 2 weeks ago
profile picturehamiltont

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

11 months, 2 weeks 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 ago
profile picturewaitingkuo

when will you provide ubuntu 14.04?

1 year, 1 month ago
profile picturewizardcxy


1 year, 1 month 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, 1 month 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, 3 months ago
profile picturemdemo

: )

1 year, 3 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, 5 months ago
profile pictureadrianlzt

nice to see comments!

1 year, 5 months ago
profile picturerufus

upon this rock I shall build my container.