How to use sops exec-file with docker-compose?

61 views Asked by At

I can't use docker compose and sops together, I don't know why

sops exec-file file.env "docker compose --env-file {} up -d" 

hangs forever, but this works:

sops exec-file file.env "cat {}" 

I've tried to use Podman instead of Docker and it worked, I need to use Docker not Podman.

1

There are 1 answers

0
Ado On

Adding the option --no-fifo works. It seems like Docker does not support named piped so we need to use the --no-fifo option.

sops exec-file --no-fifo file.env "docker compose --env-file {} up -d"