Minimal Ubuntu installs require a separate package to use https for
apt repos, which the docker image uses
This commit is contained in:
Gareth Rushgrove 2014-03-01 09:22:05 +00:00
Родитель 5405f65fe6
Коммит 26d100b7d5
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -12,6 +12,10 @@ class docker::install {
case $::osfamily {
'Debian': {
ensure_packages(['apt-transport-https'])
Package['apt-transport-https'] -> Package['docker']
if ($docker::use_upstream_package_source) {
include apt
apt::source { 'docker':

Просмотреть файл

@ -17,6 +17,7 @@ describe 'docker', :type => :class do
context 'with no parameters' do
it { should contain_class('apt') }
it { should contain_package('apt-transport-https').that_comes_before('Package[docker]') }
it { should contain_package('docker').with_name('lxc-docker').with_ensure('present') }
it { should contain_apt__source('docker').with_location('https://get.docker.io/ubuntu') }
it { should contain_package('linux-image-extra-3.8.0-29-generic') }