How to use this box with Vagrant:
Vagrant.configure("2") do |config|
config.vm.box = "envimation/ubuntu-xenial-docker"
config.vm.box_version = "1.0.0-1505610905"
end
vagrant init envimation/ubuntu-xenial-docker \
--box-version 1.0.0-1505610905
vagrant up
This version was created almost 7 years ago.
Reliable, high quality, up-to-date(daily built) image of Ubuntu Xenial 64bit with docker and docker compose.
System Package
✔ docker-ce should be installed
Service docker
✔ should be enabled
✔ should be running
#<Hashie::Mash Client=#<Hashie::Mash
✔ ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 20:00:17 2017" DefaultAPIVersion="1.30" GitCommit="cec0b72" GoVersion="go1.8.3" Os="linux" Version="17.06.2-ce"> Server=#<Hashie::Mash ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 19:59:11 2017" GitCommit="cec0b72" GoVersion="go1.8.3" KernelVersion="4.4.0-93-generic" MinAPIVersion="1.12" Os="linux" Version="17.06.2-ce">> Server.Version should cmp >= "1.17"
✔ ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 20:00:17 2017" DefaultAPIVersion="1.30" GitCommit="cec0b72" GoVersion="go1.8.3" Os="linux" Version="17.06.2-ce"> Server=#<Hashie::Mash ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 19:59:11 2017" GitCommit="cec0b72" GoVersion="go1.8.3" KernelVersion="4.4.0-93-generic" MinAPIVersion="1.12" Os="linux" Version="17.06.2-ce">> Client.Version should cmp >= "1.17"
File /usr/local/bin/docker-compose
✔ should be executable by user vagrant
Command docker-compose
✔ --version stdout should cmp == /docker-compose version 1\.16.*/i
Command docker
✔ run busybox echo "hello world" stdout should cmp == /hello world/i
Command apt-get
✔ update stderr should eq ""
✔ update exit_status should eq 0
Command DEBIAN_FRONTEND="noninteractive"
✔ apt-get install --no-install-recommends --assume-yes sshpass exit_status should eq 0
Command sshpass
✔ -p "vagrant" ssh -o StrictHostKeyChecking=no vagrant@localhost exit exit_status should eq 0
Test Summary: 12 successful, 0 failures, 0 skipped
System Package
✔ docker-ce should be installed
Service docker
✔ should be enabled
✔ should be running
#<Hashie::Mash Client=#<Hashie::Mash
✔ ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 20:00:17 2017" DefaultAPIVersion="1.30" GitCommit="cec0b72" GoVersion="go1.8.3" Os="linux" Version="17.06.2-ce"> Server=#<Hashie::Mash ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 19:59:11 2017" GitCommit="cec0b72" GoVersion="go1.8.3" KernelVersion="4.4.0-93-generic" MinAPIVersion="1.12" Os="linux" Version="17.06.2-ce">> Server.Version should cmp >= "1.17"
✔ ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 20:00:17 2017" DefaultAPIVersion="1.30" GitCommit="cec0b72" GoVersion="go1.8.3" Os="linux" Version="17.06.2-ce"> Server=#<Hashie::Mash ApiVersion="1.30" Arch="amd64" BuildTime="Tue Sep 5 19:59:11 2017" GitCommit="cec0b72" GoVersion="go1.8.3" KernelVersion="4.4.0-93-generic" MinAPIVersion="1.12" Os="linux" Version="17.06.2-ce">> Client.Version should cmp >= "1.17"
File /usr/local/bin/docker-compose
✔ should be executable by user vagrant
Command docker-compose
✔ --version stdout should cmp == /docker-compose version 1\.16.*/i
Command docker
✔ run busybox echo "hello world" stdout should cmp == /hello world/i
Command apt-get
✔ update stderr should eq ""
✔ update exit_status should eq 0
Command DEBIAN_FRONTEND="noninteractive"
✔ apt-get install --no-install-recommends --assume-yes sshpass exit_status should eq 0
Command sshpass
✔ -p "vagrant" ssh -o StrictHostKeyChecking=no vagrant@localhost exit exit_status should eq 0
Test Summary: 12 successful, 0 failures, 0 skipped