5/16/2023 0 Comments Docker compose install debianAs an example, lets make an script in /usr/local/bin/dkcompose.sh as follows: #!/bin/bash I couldn’t find a simple a posteriori method to find the docker-composer launching directory, but you could create a wrapper script to register that operation in a log stored in a known location. It looks like docker-compose reads only the local directory for docker-compose.yml to start, list and tear down the containers in the file. useful because I thought this is inherent to docker-compose and I was looking for eventual known workaround or a command option to tell from what directory docker-compose was launched (independently of OS and context). $ sudo chmod +x /usr/local/bin/docker-composeĭocker-compose version 1.20.1, build 5d8c71bĭescription:ĝebian GNU/Linux 8.9 (jessie) How docker-compose was installed: $ sudo curl -L $(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
0 Comments
Leave a Reply. |