Official Repository

Last pushed: 12 days ago
Short Description
Ubuntu is a Debian-based Linux operating system based on free software.
Full Description

Supported tags and respective Dockerfile links

For more information about this image and its history, please see the relevant manifest file (library/ubuntu). This image is updated via pull requests to the docker-library/official-images GitHub repo.

For detailed information about the virtual/transfer sizes and individual layers of each of the above supported tags, please see the ubuntu/tag-details.md file in the docker-library/docs 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.

wikipedia.org/wiki/Ubuntu_(operating_system)

What's in this image?

/etc/apt/sources.list

ubuntu:14.04

$ 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

ubuntu:12.04

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

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

Please see the Docker installation documentation for details on how to upgrade your Docker daemon.

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

Docker Pull Command

Comments (52)
kishankumar
a month ago

how can i pull the latest version of ubuntu 14.04 , When i am using FROM ubuntu14.04 ,trusty hair is getting installed , python2.7.6 is getting installed when i try to install python in it, but i want python2.7.11 . Any ideas as how to get the latest version of ubuntu 14.04

xcat
a month ago

initctl deprecated?

[root@c910f05c01bc06 ~]# sudo docker pull ubuntu
Using default tag: latest
latest: Pulling from library/ubuntu
Digest: sha256:b53bb7b0d18842214ac7472c2a8801e8682c247d30f1ba4bab0083a2e2e091ea
Status: Image is up to date for ubuntu:latest
[root@c910f05c01bc06 ~]#
[root@c910f05c01bc06 ~]#
[root@c910f05c01bc06 ~]#
[root@c910f05c01bc06 ~]#
[root@c910f05c01bc06 ~]# sudo docker run -it ubuntu:latest

root@a671ac5e05d2:/#
root@a671ac5e05d2:/#
root@a671ac5e05d2:/#
root@a671ac5e05d2:/#
root@a671ac5e05d2:/#
root@a671ac5e05d2:/# cat which initctl

#!/bin/sh
exit 0

thetomi
3 months ago

As rufus did before me, I too shall build my container upon this rock.

andreasrydberg
3 months ago

Is 12.04 removed?

I got this when I try to pull:

docker pull ubuntu:12.04

Pulling repository ubuntu
04c3793b1229: Error pulling image (12.04) from ubuntu, HTTP code 400
e31e0d7aee0f: Error pulling dependent layers
FATA[0020] Error pulling image (12.04) from ubuntu, HTTP code 400

htpl
4 months ago

I tried to make the Ubuntu working in deamon mode, but It not working for me. Could you help me? I run the command below:
docker run -d ubuntu:latest
then: docker ps
I don't see any ubuntu container running.

phdbrianlee
7 months ago

Get:24 http://archive.ubuntu.com trusty-security/universe amd64 Packages [144 kB]
Fetched 21.0 MB in 28s (733 kB/s)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages Hash Sum mismatch

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

houchaohan
7 months ago

asdsdd

jamesdcl
8 months ago

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"

rmgraham
10 months ago

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

thaniyarasu
10 months ago

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

#=>3.16.0-34-generic
but http://www.ubuntu.com/ 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 ?