Uh oh!
There was an error while loading. Please reload this page.
volumes: support for api-socket volume type - #12746
Conversation
The `api-socket` volume type allows an easy path to run containers that need access to the Docker API socket with a simple configuration on the service definition: service: foo: ... volumes: - type: api-socket The bind mount and credentials are automatically injected using existing service infrastructure. Some work is still needed to make this a bit more robust. Signed-off-by: Stephen Day <stephen.day@docker.com>
0108788 to
12e92feComparendeloof
commented
Apr 22, 2025
For better alignment with docker CLI UX, we should b introduce a |
stevvooe
commented
Apr 23, 2025
I agree that we should look to the engine side long term but there are some difficulties in making that work. I'll move this to be I'll look into the |
ndeloof
commented
Jun 6, 2025
see alternative implementation #12908 |
What I did
The
api-socketvolume type allows an easy path to run containers that need access to the Docker API socket with a simple configuration on the service definition:The bind mount and credentials are automatically injected using existing service infrastructure. Some work is still needed to make this a bit more robust.
Related issue
docker/cli#5858
compose-spec/compose-go#770
compose-spec/compose-spec#587
(not mandatory) A picture of a cute animal, if possible in relation to what you did