Using Docker containers to test Perl installations on multiple Linux versions

Learn Go and Join the Fun

On Ubuntu 13.04 and 13.10, the Docker service can be easily installed with this command:

sudo apt-get install linux-image-extra-`uname -r`

Previous versions require a kernel patch [5]. After a reboot of the host, the client communicates with the functional Docker daemon (status: version 0.8.1) via a Linux socket belonging to root in /var/run/docker.sock. Users can therefore choose between issuing all Docker commands as root or ditching all security concerns overboard and giving the whole world write permissions for the socket. In the long term, Docker will maybe want to design more acceptable ownership conditions, although this is, admittedly, not entirely trivial.

All told, Docker currently is probably one of the hottest projects on GitHub. As a pseudo-virtualization tool, it promises significant performance gains, at the same time decoupling components running in parallel and isolated from each other. If you want to join in the fun and contribute to the Docker project, however, you first need learn Go [7], the programming language in which Docker is written.


  1. "Linux Containers" by Eva-Katharina Kunst and Jürgen Quade, ADMIN, 2011, issue 06, p. 64
  2. Docker:
  3. "Docker" by Rob Knight, ADMIN, 2013, issue 16, p. 33
  4. "Perl: Vagrant Package" by Michael Schilli, Linux Magazine, June 2013, issue 151, p. 64,
  5. Installing Docker on Ubuntu:
  6. Listings for this article:
  7. "Go Programming Language" by Marcus Nutzinger and Rainer Poisel, Linux Magazine, July 2010, issue 116, p. 52

The Author

Mike Schilli works as a software engineer with Yahoo! in Sunnyvale, California. He can be contacted at Mike's homepage can be found at

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Docker with OwnCloud

    Run your application smoothly and portably in the cloud with the Docker container system. This workshop takes a practical look deploying Docker with the OwnCloud cloud environment.

  • Perl – Programming Tips

    If you have been programming for decades, you've likely gathered a personal bag of tricks and best practices over the years – much like this treasure trove from the Perlmeister.

  • Docker

    Docker is an economical alternative to conventional virtualization. Because each Docker container shares the underlying operating system, it enjoys the resource isolation and allocation benefits of VMs but is much more portable and efficient.

  • Docker

    Do you work with Ubuntu but want to test something quickly on an openSUSE system? You don't need a second PC or a virtual machine to do it – a single container is quite enough.

  • Ansible Container Auto Deploy

    Streamline software deployment with Ansible and Docker containers.

comments powered by Disqus

Direct Download

Read full article as PDF:

Price $2.95

Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Find SysAdmin Jobs