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.

Passing commands / args to docker containers

Featured Replies

This is basically a follow up request for the one bellow that got archived.

 

The issue with Unraid 7 is that the workaround of passing command arguments to the repository field no longer works.

 

What I’m trying to achieve is essentially the equivalent of this docker compose

 

services:
  cadvisor:
    image: 'gcr.io/cadvisor/cadvisor-arm64:v0.49.1'
    container_name: 'cadvisor'
    command:
      - '-housekeeping_interval=10s'
      - '-docker_only=true'
    ports:
      - '8080:8080'
    devices:
      - /dev/kmsg:/dev/kmsg
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:ro
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
    restart: unless-stopped

 

This is beneficial for containers like ‘cadvisor’ that lack a configuration file, requiring all settings to be passed as arguments.

Edited by StancuFlorin

Solved by itimpi

  • Community Expert
  • Solution

Not sure I understand?   What are these arguments to?   If to the docker run I would have thought you pass them via the Extra Parameters or the Post Arguments fields

  • Author

You are right. I was testing the "Extra Parameters" and missed the "Post Arguments" field. It is working fine with post arguments

 

docker run
  -d
  --name='cadvisor'
  --net='bridge'
  --pids-limit 2048
  --privileged=true
  -e TZ="Europe/Athens"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="cadvisor"
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:8080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/selfhosters/unRAID-CA-templates/master/templates/img/cadvisor.png'
  -p '8090:8080/tcp'
  -v '/':'/rootfs':'ro'
  -v '/var/run':'/var/run':'ro'
  -v '/sys':'/sys':'ro'
  -v '/var/lib/docker':'/var/lib/docker/':'ro' 'gcr.io/cadvisor/cadvisor'
  --housekeeping_interval=10s
  --docker_only=true

 

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.

Guest
Reply to this topic...

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.