I use a third party GUI (Synology Docker package) to setup a docker container. However, it\'s limitation makes me need to run the container from the command line. (I want to
Use docker inspect:
$ docker inspect foo/bar [ { # … "Config": { # … "Cmd": [ "/usr/local/bin/script.sh" ], # … } } ]
You can programatically parse this with jq:
$ docker inspect foo/bar | jq -r '.[0]["Config"]["Cmd"][0]' /usr/local/bin/script.sh