File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ VAGRANTFILE_API_VERSION = "2"
6
6
7
7
Vagrant . configure ( VAGRANTFILE_API_VERSION ) do |config |
8
8
9
- config . vm . box = "ubuntu/trusty64 "
9
+ config . vm . box = "ubuntu/bionic64 "
10
10
11
11
config . vm . provider "virtualbox" do |v |
12
12
v . name = "openapi-generator"
@@ -23,13 +23,15 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
23
23
24
24
#Provision
25
25
config . vm . provision "shell" , inline : <<-SHELL
26
- sudo touch /var/lib/cloud/instance/locale-check.skip
27
- sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
28
- sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list'
29
- sudo apt-cache policy docker-engine
26
+ sudo apt-get update
27
+ sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
28
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
29
+ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
30
+ $(lsb_release -cs) stable"
31
+ sudo sh -c 'echo "deb https://apt.dockerproject.org/repo ubuntu-cosmic main" > /etc/apt/sources.list.d/docker.list'
30
32
sudo apt-get update
31
33
sudo apt-get upgrade -y
32
- sudo apt-get install -y docker-engine
34
+ sudo apt-get install -y docker-ce
33
35
sudo usermod -aG docker vagrant
34
36
SHELL
35
37
You can’t perform that action at this time.
0 commit comments