turnbullpress / dockerbook-code

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

Running jenkins on OSX #38

Closed RoryKelly closed 7 years ago

RoryKelly commented 7 years ago

I could not get the example code on p182 to work on mac OSX 10.12.3 (16D32)

changed instructions From

sudo mkdir -p /var/jenkins_home
cd /var/jenkins_home
sudo chown -R 1000 /var/jenkins_home

sudo docker run -d -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --name jenkins jamtur01/jenkins

to


sudo mkdir -p /private/var/jenkins_home
cd /private/var/jenkins_home
sudo chown -R 1000 /private/var/jenkins_home

sudo docker run -d -p 8080:8080 -p 50000:50000 -v /private/var/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --name jenkins jamtur01/jenkins
jamtur01 commented 7 years ago

Thanks! I'll add a note in the next release explaining this.