Ustrombase Posted September 16, 2019 Share Posted September 16, 2019 (edited) Trying to install Adb docker and have tried using label and passing arguments field but no luck getting the whole command below entered. sh -c "/config/startup.sh & adb -a -P 5037 server nodaemon" The video is below is what I’m trying to do and the screenshots are from the video showing what the command is and how it should look like in portainer. Right now I don’t have the first part of the command showing under the CMD field (sh -c "/config/startup.sh) before the ‘&’. What is the syntax? here is what I have tried in the extra parameters -cmd='sh -c "/config/startup.sh & adb -a -P 5037 server nodaemon"' or sh -c "/config/startup.sh & adb -a -P 5037 server nodaemon" Edited September 16, 2019 by Ustrombase Add info Quote Link to comment
Squid Posted September 21, 2019 Share Posted September 21, 2019 (edited) On 9/16/2019 at 11:59 AM, Ustrombase said: extra parameters You would want post arguments CMD (default command or options) Recall the optional COMMAND in the Docker commandline: $ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...] This command is optional because the person who created the IMAGE may have already provided a default COMMAND using the Dockerfile CMD instruction. As the operator (the person running a container from the image), you can override that CMD instruction just by specifying a new COMMAND. If the image also specifies an ENTRYPOINT then the CMD or COMMAND get appended as arguments to the ENTRYPOINT. Edited September 21, 2019 by Squid Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.