openwallet-foundation / acapy

ACA-Py is a foundation for building decentralized identity applications and services running in non-mobile environments.
https://aca-py.org
Apache License 2.0
421 stars 515 forks source link

How to use tag arg-file when with agent docker image #2025

Closed abhimin closed 2 years ago

abhimin commented 2 years ago

I'm using docker run agent image acapy start --arg-file ./local.yaml but not able to start acapy

ianco commented 2 years ago

When you're running in Docker you need to either copy your config file into the docker image, or else mount the directory containing your config file so that it's accessible within docker.

There's an example that shows how to do this: https://github.com/hyperledger/aries-cloudagent-python/blob/main/demo/docker/docker-compose.yml

(This is for a multi-ledger config file, but the principle is the same. The example uses docker-compose but you can do the same thing running docker from the command line)