Được TopGit lập chỉ mục từ metadata GitHub: geerlingguy/ansible-role-docker có 2.3k sao. Ansible Role - Docker
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Available variables are listed below, along with default values (see defaults/main.yml):
# Edition can be one of: 'ce' (Community Edition) or 'ee' (Enterprise Edition).
docker_edition: 'ce'
docker_packages:
- "docker-{{ docker_edition }}"
- "docker-{{ docker_edition }}-cli"
- "docker-{{ docker_edition }}-rootless-extras"
- "containerd.io"
- docker-buildx-plugin
docker_packages_state: present
The docker_edition should be either ce (Community Edition) or ee (Enterprise Edition).
You can also specify a specific version of Docker to install using the distribution-specific format:
Red Hat/CentOS: docker-{{ docker_edition }}-<VERSION> (Note: you have to add this to all packages);
Debian/Ubuntu: docker-{{ docker_edition }}=<VERSION> (Note: you have to add this to all packages).
You can control whether the package is installed, uninstalled, or at the latest version by setting docker_packages_state to present, absent, or latest, respectively. Note that the Docker daemon will be automatically restarted if the Docker package is updated. This is a side effect of flushing all handlers (running any of the handlers that have been notified by this and any other role up to this point in the play).
A list of packages to be uninstalled prior to running this role. See Docker's installation instructions for an up-to-date list of old packages that should be removed.
docker_service_manage: true
docker_service_state: started
docker_service_enabled: true
docker_service_start_command: ""
docker_restart_handler_state: restarted
Variables to control the state of the docker service, and whether it should start on boot. If you're installing Docker inside a Docker container without systemd or sysvinit, you should set docker_service_manage to false.
Docker Compose Plugin installation options. These differ from the below in that docker-compose is installed as a docker plugin (and used with docker compose) instead of a standalone binary.
Controls whether this role will add the official Docker repository. Set to false if you want to use the default docker packages for your system or manage the package repository on your own.
(Used only for Debian/Ubuntu.) You can switch the channel to nightly if you want to use the Nightly release.
docker_apt_ansible_distribution is a workaround for Ubuntu variants which can't be identified as such by Ansible, and is only necessary until Docker officially supports them.
You can change docker_apt_repo_url if you need to point Debian or Ubuntu systems at an internal mirror or cache.
You can change docker_apt_gpg_key to a different url if you are behind a firewall or provide a trustworthy mirror.
docker_apt_filename controls the name of the source list file created in sources.list.d. If you are upgrading from an older (<7.0.0) version of this role, you should change this to the name of the existing file (e.g. download_docker_com_linux_debian on Debian) to avoid conflicting lists.
docker_yum_repo_url: "{{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/docker-{{ docker_edition }}.repo"
docker_yum_repo_enable_test: '0'
docker_yum_gpg_key: "{{ docker_repo_url }}/{{ 'fedora' if ansible_facts.distribution == 'Fedora' else 'rhel' if ansible_facts.distribution == 'RedHat' else 'centos' }}/gpg"
(Used only for RedHat/CentOS.) You can enable the Test repo by setting the respective vars to 1.
You can change docker_yum_gpg_key to a different url if you are behind a firewall or provide a trustworthy mirror.
Usually in combination with changing docker_yum_repository as well.
docker_users: []
A list of system users to be added to the docker group (so they can use Docker on the server). Example:
docker_users:
- user1
- user2
docker_daemon_options: {}
Custom dockerd options can be configured through this dictionary representing the json file /etc/docker/daemon.json. Example:
Many users of this role wish to also use Ansible to then build Docker images and manage Docker containers on the server where Docker is installed. In this case, you can easily add in the docker Python library using the geerlingguy.pip role:
We Manage: Helping start-ups and grown-ups scaling their infrastructure in a sustainable way.
The above sponsor(s) are supporting Jeff Geerling on GitHub Sponsors. You can sponsor Jeff's work too, to help him continue improving these Ansible open source projects!
Author Information
This role was created in 2017 by Jeff Geerling, author of Ansible for DevOps.
geerlingguy/ansible-role-docker thuộc nhóm Developer Tools trên TopGit, cùng 11 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về geerlingguy/ansible-role-docker ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/geerlingguy/ansible-role-docker là nguồn chính thức.
geerlingguy/ansible-role-docker có bao nhiêu sao?
geerlingguy/ansible-role-docker có 2.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/geerlingguy/ansible-role-docker. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
geerlingguy/ansible-role-docker có phải mã nguồn mở không?
Có — geerlingguy/ansible-role-docker phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/geerlingguy/ansible-role-docker.
geerlingguy/ansible-role-docker còn đang phát triển không?
Commit gần nhất trên geerlingguy/ansible-role-docker là 7 tháng trước (theo timestamp GitHub). Repo có 899 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
geerlingguy/ansible-role-docker dùng license gì?
geerlingguy/ansible-role-docker phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
geerlingguy/ansible-role-docker là gì?
geerlingguy/ansible-role-docker (geerlingguy/ansible-role-docker) là dự án đa ngôn ngữ trên GitHub. Theo mô tả gốc: Ansible Role - Docker
geerlingguy/ansible-role-docker viết bằng ngôn ngữ gì?
Dữ liệu TopGit chưa ghi nhận ngôn ngữ chính cho geerlingguy/ansible-role-docker. Xem danh sách file trên GitHub để biết chi tiết.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về ansible-role-docker?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về ansible-role-docker.