krzysztof-magosa / ansible-role-docker Goto Github PK
View Code? Open in Web Editor NEWAnsible role for Docker
License: MIT License
Ansible role for Docker
License: MIT License
Distro: Debain
Version: Stretch + Buster
If you create a custom daemon.json
in /etc/docker
, when you try and restart docker, it will refuse to do so, this is due to the opts are already in the main systemd file.
/etc/docker/daemon.json
{
"hosts": ["unix:///var/run/docker.sock", "tcp://127.0.0.1:2375"],
"tls": false,
"storage-driver": "overlay2"
}
A work around is to...
mkdir /etc/systemd/system/docker.service.d/
cat << EOF > /etc/systemd/system/docker.service.d/docker.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd
EOF
systemctl daemon-reload
systemctl restart docker
Then docker will run correctly.
Hi,
Thanks for producing such an awesome role.
I have noticed that you do not seem to have docker swarm
support, it would be really great if this could be added.
https://docs.ansible.com/ansible/latest/modules/docker_swarm_module.html
https://docs.ansible.com/ansible/2.4/docker_secret_module.html
macOS: 10.15.4
ansible version: 2.9.6
python version = 3.8.2
Minor bug found while doing ansible playbook runs, you get the following warning:
[DEPRECATION WARNING]: The 'docker_service' module has been renamed to 'docker_compose'.. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
While they can be hidden, it would be nice to be future proofed.
Hi,
Support for creating custom networks using docker network create
would be really handy addition for this role.
https://docs.ansible.com/ansible/latest/modules/docker_network_module.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.