OFFICIAL REPOUpdated 1 week, 1 day ago

ubuntu

Official Ubuntu base image
0412375395

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.

Ubuntu

sources.list

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

deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted

deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted

deb http://archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://archive.ubuntu.com/ubuntu/ trusty universe
deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe


deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ trusty-security universe
deb-src http://archive.ubuntu.com/ubuntu/ trusty-security universe

-

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

deb http://archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted

deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted

deb http://archive.ubuntu.com/ubuntu/ precise universe
deb-src http://archive.ubuntu.com/ubuntu/ precise universe
deb http://archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates universe


deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted
deb http://archive.ubuntu.com/ubuntu/ precise-security universe
deb-src http://archive.ubuntu.com/ubuntu/ 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

Issues

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.

Contributing

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.

Comments

3 weeks, 5 days ago
profile picturedavidshen84

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

1 month 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 ago
profile pictureeggtree

@seanloook Looking at the manifest file (https://github.com/docker-library/official-images/blob/master/library/ubuntu#L22) ubuntu:latest points at the most recent image of the Ubuntu LTS version, currently 14.04.01

2 months ago
profile pictureseanloook

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

2 months, 2 weeks ago
profile picturedimdung

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

~dimdung

2 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

//Wasseem

2 months, 2 weeks ago
profile picturedimdung

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

5 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

5 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"
busted
stuff
5 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

5 months, 1 week ago
profile pictureboffbowsh

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

5 months, 2 weeks ago
profile picturenithyakathiresan

How to install java on top of ubuntu image??

5 months, 2 weeks ago
profile picturedangtrinhnt

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

5 months, 2 weeks ago
profile picturezhuzhichao

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

6 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, https://docs.docker.com/userguide/dockerimages/

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

6 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 ago
profile pictureindiepopart

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

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

9 months ago
profile picturejlhawn

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

10 months, 1 week ago
profile picturefitbur

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

Resulted:

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.

10 months, 1 week ago
profile picturethatcher

14.04 has arrived! https://github.com/dotcloud/stackbrew/pull/48

10 months, 1 week ago
profile pictureruudk

+1 for 14.04 LTS

10 months, 1 week ago
profile picturentran013

+1 for 14.04

10 months, 2 weeks ago
profile picturejdash

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

10 months, 2 weeks ago
profile pictureshreyask

+1 for 14.04

10 months, 2 weeks ago
profile picturekleberng1990

+1 for 14.04

10 months, 2 weeks ago
profile pictureschickling

+1 for 14.04

10 months, 2 weeks ago
profile picturedownwind

Another vote for 14.04 LTS.

10 months, 2 weeks ago
profile picturefitbur

+1 for adding Ubuntu 14.04 LTS.

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

10 months, 2 weeks ago
profile picturehamiltont

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

10 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?

11 months, 2 weeks ago
profile picturewaitingkuo

when will you provide ubuntu 14.04?

1 year ago
profile picturewizardcxy

haha

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

: )

1 year, 2 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, 4 months ago
profile pictureadrianlzt

nice to see comments!

1 year, 4 months ago
profile picturerufus

upon this rock I shall build my container.

Properties