turnbullpress / dockerbook-code

The code and configuration examples from The Docker Book (http://www.dockerbook.com)
927 stars 581 forks source link

Chapter 5 Jenkins example failed on installing ca and certificates #3

Closed mattma closed 10 years ago

mattma commented 10 years ago

Hey,

First of all, it is a great book. It worths every penny and I really really enjoy it. Thank you for putting a great list of Docker together for the beginners.

In chapter 5, testing with Docker. PDF page 172 of 301, version 1.1.1 (76fbc4e). I tried with docker build on the Dockerfile. It failed at

RUN apt-get update -qq && apt-get install -qqy iptables ca certificates lxc openjdk-6-jdk git-core lxc-docker

So I followed the debugging technique and docker run bashed into a last successful state of the image. I run apt-get install ca, apt-get install certificates. I got the error below

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ca

It was the same error when do the docker build, the apt-get have been successfully updated. What was the different between my system and yours? i am running Docker version 1.2.0, build fa7b24f

jamtur01 commented 10 years ago

You're missing a dash - between ca and certificates. It should be ca-certifcates.

mattma commented 10 years ago

thanks. When copy-and-paste on from the book's snippet, I have to manually delete the return symbol in the vi, and that accidentally delete the dash too. Thanks.

A quick question on _Docker orchestration _, which one is better for beginner? Fig (Docker project) or Flynn? By reading the documentation, flynn does add up a lot of complex into the mix, looks like it is hard to learn.

jamtur01 commented 10 years ago

For simple orchestration I'd learn Fig. Flynn is more of a PAAS-centric solution.

mattma commented 10 years ago

Thank you @jamtur01

Docker Rocks!