Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to add command to docker container

Featured Replies

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"

 

 

7EE3E526-2DB6-441F-9B7A-E27DF389BB19.jpeg

210E1152-C418-4BB4-8D45-12AD6489B47B.jpeg

Edited by Ustrombase
Add info

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 by Squid

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.