LoginSignup
1
3

More than 5 years have passed since last update.

Installation memo: vagrant + ubuntu/zesty64 + docker ce w/ some tricks

Last updated at Posted at 2017-05-29

Installation memo: vagrant + ubuntu/zesty64 + docker ce w/ some tricks

Objectives

  • Personal memo

Limitation

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
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3