Finally had to fork godotenv because it strips comments and we need
those to parse length values (e.g. "FOO=v1 # length=10") (or in other
words, motivation to move to the YAML format).
There is a new secret module now, with functionality for dealing with
generation and parsing of secrets.
The final output needs some work and there is also the final step of
implementing the sending of secrets to the docker daemon. Coming Soon
™️.
Taken from this gist by github.com/agbaraka
https://gist.github.com/agbaraka/654a218f8ea13b3da8a47d47595f5d05
There is no in-built way of dealing with contexts using the golang sdk.
This means we have to make our own Dial helper borrowing from Docker CLI
This means all Docker API calls are made within the ssh connection
This uses `docker system dial-stdio`