mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix failure on adding source list for ubuntu
For hybrid cloud, some ubuntu vm images doesn't have the directory `/etc/apt/sources.list.d` which cause failure on creating `/etc/apt/sources.list.d/docker.list`. To fix this issue, create this directory first (if it doesn't exist). Signed-off-by: Penghan Wang <ph.wang@daocloud.io>
This commit is contained in:
parent
9264d38424
commit
80e90499aa
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ do_install() {
|
|||
else
|
||||
$sh_c "$curl ${url}gpg | apt-key add -"
|
||||
fi
|
||||
$sh_c "mkdir -p /etc/apt/sources.list.d"
|
||||
$sh_c "echo deb ${url}ubuntu docker main > /etc/apt/sources.list.d/docker.list"
|
||||
$sh_c 'sleep 3; apt-get update; apt-get install -y -q lxc-docker'
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue