mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-28 19:06:03 +01:00
Ubuntu 16.04 LTS requires dmsetup
for Docker to install
Docker may hang during installation when the `dmsetup` package is not installed on Ubuntu 16.04. For more information, see the Docker bug report docker/docker#23347
This commit is contained in:
parent
2ef8e4c26f
commit
7f9f052be4
@ -16,6 +16,18 @@
|
|||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
|
|
||||||
|
# Fix for https://github.com/docker/docker/issues/23347
|
||||||
|
- name: Install dmsetup for Ubuntu 16.04
|
||||||
|
apt:
|
||||||
|
pkg: dmsetup
|
||||||
|
state: present
|
||||||
|
register: dmsetup_result
|
||||||
|
when: ansible_distribution_version|version_compare('16.04', '=')
|
||||||
|
|
||||||
|
- name: Run dmsetup for Ubuntu 16.04
|
||||||
|
command: dmsetup mknodes
|
||||||
|
when: dmsetup_result.changed
|
||||||
|
|
||||||
- name: Add Docker apt key.
|
- name: Add Docker apt key.
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://download.docker.com/linux/ubuntu/gpg
|
url: https://download.docker.com/linux/ubuntu/gpg
|
||||||
|
Loading…
Reference in New Issue
Block a user