pyinfra-dev / pyinfra

pyinfra turns Python code into shell commands and runs them on your servers. Execute ad-hoc commands and write declarative operations. Target SSH servers, local machine and Docker containers. Fast and scales from one server to thousands.
https://pyinfra.com
MIT License
3.91k stars 382 forks source link

Docker operations? #716

Closed mjmare closed 2 weeks ago

mjmare commented 2 years ago

It may be that I don't understand the purpose of the docker and dockerssh connectors, but it seems to me that a set of Docker operations appears to be a glaring omission given Docker's ubiquity. For example building/managing images, starting/stopping containers, managing docker compose stacks etc. Say, something similar to (part of) https://docs.ansible.com/ansible/latest/collections/index_module.html#community-docker

If similar functionality is already present in PyInfra please clarify.

TIA!

shohamd4 commented 1 year ago

Hi, these kinds of docker operations are highly valuable. Would you have any thoughts on implementing it? Thanks

ebreton commented 1 year ago

+1 for docker-compose (and docker in general) 🙏

Fizzadar commented 2 weeks ago

These were added in v3!