Official Repository

Last pushed: 19 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/ 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.

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.11.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 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. If the issue is related to a CVE, please check for a cve-tracker issue on the official-images repository first.

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.

Docker Pull Command

Comments (61)
3 days ago

Is this a server version of Ubuntu?thanks.

12 days ago

the size so big so foo.

a month ago


use something like VirtualBox for the desktop version. Docker is not for being able to run window managers. Maybe linux gurus can make it happen, but is not for the faint hearted.

Also try to read more on understanding what a docker container is and how it is built, because reading your question you seem to be lost.

a month ago

Hey @theom,

docker containers mainly have the idea of "one service per container", but of course there are ways to run multiple inside one. As a tip, read this first:

I also had to read much more of the first chapters of the documentation until it boiled down how to think about a container.


2 months ago

thank you for this 14.04.04 Image from Ubuntu.
A short Question I am new and I try to connect by ssh to the running Server but the connection is always refused.
What I can I do?
I run the Image on my synology Diskstaion.
I got this Errors:

ssh -p 65535 root@

ssh -p 65535 root@ -v
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to [] port 65535.
debug1: Connection established.
debug1: identity file /home/dufoy/.ssh/id_rsa type -1
debug1: identity file /home/dufoy/.ssh/id_rsa-cert type -1
debug1: identity file /home/dufoy/.ssh/id_dsa type -1
debug1: identity file /home/dufoy/.ssh/id_dsa-cert type -1
debug1: identity file /home/dufoy/.ssh/id_ecdsa type -1
debug1: identity file /home/dufoy/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/dufoy/.ssh/id_ed25519 type -1
debug1: identity file /home/dufoy/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6
ssh_exchange_identification: read: Connection reset by peer

Best Theo

2 months ago

issue append when build from 14.04 to run apt-get update.
Get:20 trusty/universe amd64 Packages [7589 kB]
W: Failed to fetch Hash Sum mismatch

W: Failed to fetch Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

these two files were modified in apr 1. i can build successful at mar 31, please have a check

2 months ago

Anybody know how to enable tab completion ?
I tried installing bash-completion, but, no luck..

2 months ago

Someone asked me to create Ubuntu desktop and Ubuntu server based docker images for his app.
I'm confused between Ubuntu desktop and server docker images , i have grabbed image for desktop but nothing for Ubuntu server.
Help me please!

3 months ago

Step 4 : RUN curl -sSL | sh
---> Running in 8813d9354bd9
modprobe: ERROR: ../libkmod/libkmod.c:556 kmod_search_moddep() could not open moddep file '/lib/modules/3.10.0-327.10.1.el7.x86_64/modules.dep.bin'
Warning: current kernel is not supported by the linux-image-extra-virtual
package. We have no AUFS support. Consider installing the packages
linux-image-virtual kernel and linux-image-extra-virtual for AUFS support.

  • sleep 10
  • sh -c apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.jvnMuT5fdf --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
    gpg: requesting key 2C52609D from hkp server
    gpg: key 2C52609D: public key "Docker Release Tool (releasedocker)" imported
    gpg: Total number processed: 1
    gpg: imported: 1 (RSA: 1)
  • sh -c mkdir -p /etc/apt/sources.list.d
  • dpkg --print-architecture
  • sh -c echo deb [arch=amd64] ubuntu-trusty main > /etc/apt/sources.list.d/docker.list
  • sh -c sleep 3; apt-get update; apt-get install -y -q docker-engine
4 months 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