Running Docker on Ubuntu for Power Servers

[Update – docker is now available as part of Ubuntu Vivid for Power LE. Also upstream docker can now be built on Ubuntu without requiring any custom patches. For more information please refer here ]

Upstream docker cannot yet be built on non-x86 platforms due to build issues with gccgo.

More details are available in the following tracker – https://github.com/docker/docker/issues/9207

However that shouldn’t prevent any user from running docker on Power systems. You can download the docker binary for Ubuntu on Power from here.

As a user or developer, using docker on a Power system should be no different than using it on an Intel system

I gave it a spin on an Ubuntu VM on PowerKVM servers, provisioned via SiteOx (http://www.siteox.com/index.php).

1. Install docker

[Update – Please check the latest version in ftp://ftp.unicamp.br/pub/linuxpatch/docker-ppc64/ubuntu/14_10/. Currently docker.io-1.4.1 is available]

rdlrdp@sovmp154:~$wget ftp://ftp.unicamp.br/pub/linuxpatch/docker-ppc64/ubuntu/14_10/docker.io-1.3.0-dev_ppc64el.deb
rdlrdp@sovmp154:~$sudo dpkg -i docker.io-1.3.0-dev_ppc64el.deb

2. Check basic docker info

rdlrdp@sovmp154:~$ sudo docker info
Containers: 0
Images: 0
Storage Driver: devicemapper
Pool Name: docker-8:1-131110-pool
Pool Blocksize: 65.54 kB
Data file: /var/lib/docker/devicemapper/devicemapper/data
Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata
Data Space Used: 305.7 MB
Data Space Total: 107.4 GB
Metadata Space Used: 725 kB
Metadata Space Total: 2.147 GB
Library Version: 1.02.77 (2012-10-15)
Execution Driver: native-0.2
Kernel Version: 3.16.0-24-generic
Operating System: Ubuntu 14.10
WARNING: No swap limit support

3. Create a docker image

rdlrdp@sovmp154:~$ sudo apt-get install debootstrap
rdlrdp@sovmp154:~$sudo debootstrap utopic utopic
rdlrdp@sovmp154:~$ sudo tar -C utopic -c . | sudo docker import - local:utopic
40413cef45053be0059790f6a6beb78798cc4498de3027288d5cde840fa95ba4

rdlrdp@sovmp154:~$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
local utopic 40413cef4505 3 minutes ago 248.6 MB

4. Run the docker container

rdlrdp@sovmp154:~$ sudo docker run 40413cef4505 cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.10
DISTRIB_CODENAME=utopic
DISTRIB_DESCRIPTION="Ubuntu 14.10"

Pradipta Kumar Banerjee

I'm a Cloud and Linux/ OpenSource enthusiast, with 16 years of industry experience at IBM. You can find more details about me here - Linkedin

You may also like...