I want to try new Docker Swarm features which include in Docker v1.12 but for some reason it’s not straight forward as it should so I’ll note it here in case someone get stuck.
Prerequisites
- Ubuntu : I’ll use Ubuntu 14.04.4 x64 via Docker.
- Docker : We need this for simulate Ubuntu on OS X EL Capitan v10.11.5 in my case. You can download it here.
- Basic SSH, Docker skill.
Install Docker
Download it here and just follow setup guide.
Install Ubuntu
Open Kinematic from Docker.
Create Ubuntu
Install Docker on Ubuntu
Ensure Docker is running and contaner is there.
$ docker ps
You should see
Open Terminal and copy shell script below to Docker by Container ID
$ docker cp install-docker-exp.sh 2a87bf7e662b:.
The different is we use experimental instead of main because we need to install beta version 1.12 which is listed only in experimental folder.
Get in to Docker container by Container ID
$ docker exec -it 2a87bf7e662b sh
Run shell script to install Docker.
# . ./install-docker-exp.sh
And you should see…
Docker version 1.12.0-rc3, build 91e29e8, experimental
That’s it! but if you want to install on real server like DigitalOcean please follow this step instead and just use install-docker-exp.sh above instead of install-docker.sh there.
Note (ref)
Don’t miss a chance to get free $10 for DigitalOcean ← 2 months free hosting!
And do claim your cheapest .io name before it gone at NameCheap.