E
E
E2016-04-06 08:41:28
Docker
E, 2016-04-06 08:41:28

How to launch docker image via docker-compose with arguments?

docker run -it --rm -p 443:443 -p 80:80 --name letsencrypt -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" quay.io/letsencrypt/letsencrypt:latest certonly --standalone -d domain.ru --email [email protected] --agree-tos --renew-by-default

There is a letsencrypt image, how can this be stuffed into yml docker-compose?
Ports are understandable through ports, the same goes for paths through volumes, but how can he pass the rest?
--standalone -d domain.ru --email [email protected] --agree-tos --renew-by-default

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Grachev, 2016-04-06
@aylo

https://docs.docker.com/compose/compose-file/#command

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question