OFFICIAL REPOUpdated 2 days, 1 hour ago

ubuntu

Official Ubuntu base image
0433438642

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

Documentation

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 REAMDE.md file before attempting a pull request.

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

2 days, 13 hours ago
profile picturekuahyeow

Seems to be AMD64, looking at the Dockerfile for precise

1 month ago
profile picturepreeth

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

2 months, 2 weeks ago
profile picturedavidshen84

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

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

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

3 months, 3 weeks ago
profile pictureseanloook

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

4 months, 1 week ago
profile picturedimdung

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

~dimdung

4 months, 1 week 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

4 months, 1 week ago
profile picturedimdung

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

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

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

7 months ago
profile picturenithyakathiresan

How to install java on top of ubuntu image??

7 months ago
profile picturedangtrinhnt

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

7 months ago
profile picturezhuzhichao

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

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

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

8 months, 3 weeks ago
profile pictureindiepopart

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

9 months, 3 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, 3 weeks ago
profile picturejlhawn

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

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

12 months ago
profile picturethatcher

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

12 months ago
profile pictureruudk

+1 for 14.04 LTS

12 months ago
profile picturentran013

+1 for 14.04

12 months ago
profile picturejdash

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

12 months ago
profile pictureshreyask

+1 for 14.04

12 months ago
profile picturekleberng1990

+1 for 14.04

12 months ago
profile pictureschickling

+1 for 14.04

12 months ago
profile picturedownwind

Another vote for 14.04 LTS.

1 year ago
profile picturefitbur

+1 for adding Ubuntu 14.04 LTS.

1 year 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.

1 year ago
profile picturehamiltont

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

1 year 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, 1 month ago
profile picturewaitingkuo

when will you provide ubuntu 14.04?

1 year, 1 month ago
profile picturewizardcxy

haha

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

: )

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

nice to see comments!

1 year, 6 months ago
profile picturerufus

upon this rock I shall build my container.

Properties


Settings