https://github.com/xsf/ansible-autopulled-docker-service
A thing
https://github.com/xsf/ansible-autopulled-docker-service
Last synced: 2 months ago
JSON representation
A thing
- Host: GitHub
- URL: https://github.com/xsf/ansible-autopulled-docker-service
- Owner: xsf
- Created: 2020-04-06T14:53:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T12:13:36.000Z (about 5 years ago)
- Last Synced: 2025-02-09T11:15:09.933Z (4 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# autopulled docker service
## Configuration / Variables
See the [defaults file](defaults/main.yml).
## Usage
1. Include the role in your playbook. It must run as root.
2. Configure as described above.
3. Run the playbook.
4. ???
5. PROFIT!### Managing services after rollout
To force an image update, run:
```console
# systemctl restart xsf-autopulled-docker-service@$name.service
```where ``$name`` is the `name` value of the container you want to update.
This unit will also have logs concerning the container update process. The
logs can be queried with journalctl as usual:```console
# journalctl -u xsf-autopulled-docker-service@$name.service
```### Notes
- This will not clean up old containers which have been removed from the
configuration.