Installation memo: vagrant + ubuntu/zesty64 + docker ce w/ some tricks
Objectives
- Personal memo
Limitation
- Not available zesty docker-ce repo (30/05/2017)
Target
- Docker CE User on Ubuntu Zesty64
System
- macOS
- vagrant: 1.9.4
- box: ubuntu/zesty64
- oracle virtual box
Direction
1. Box add if necessary
vagrant box add ubuntu/zesty64
2. Box update if needed
vagrant box update --box ubuntu/zesty64
3. Init box /w minimal option
vagrant init -m ubuntu/zesty64
4. Add private network in Vagrant file
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/zesty64"
config.vm.network "private_network", type: "dhcp"
end
5. Up and connect
vagrant up
vagrant ssh
6. Guest OS update (force)
sudo apt-get update -y
sudo apt-get upgrade -y
7. Install docker CE
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
add_"xenial"_line_to_repo_(trick)
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo docker run hello-world
ubuntu@ubuntu-zesty:~$ sudo docker --version
Docker version 17.03.1-ce, build c6d412e