Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Commit

Permalink
Update to Xenial image and fix docker config commands
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondchen625 committed Nov 14, 2017
1 parent 961b172 commit 8ddae5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "docker-ubuntu16"
config.vm.provision "shell", path: "provision.sh"
config.vm.provider "virtualbox" do |v|
Expand Down
10 changes: 3 additions & 7 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
usermod -a -G docker vagrant
mkdir -p /etc/docker
cat << EOF > /etc/docker/daemon.json
{
"hosts": ["unix:///var/run/docker.sock", "tcp://0.0.0.0:2376"]
}
EOF
usermod -a -G docker ubuntu
sed -i 's$fd://$fd:// -H tcp://0.0.0.0:2376$g' /lib/systemd/system/docker.service
systemctl daemon-reload
service docker restart
apt-get clean

0 comments on commit 8ddae5f

Please sign in to comment.