Possible to install Docker container from the shell?

I came across instructions for installing the freeware urbackup as a Docker container. The installation instructions say to run this command:

docker run -d --name urbackup-server-1 -v /media/backups:/backups -v /media/database:/var/urbackup -p 55413-55415:55413-55415 -p 35623:35623/udp uroni/urbackup-server

Will this work on TrueNAS Electric Eel?

By the way, I am not actually looking to install a urbackup server, but would like to install DAAPd, in order to serve up music from an iTunes music library. I thought, however, that urbackup might be a more common use case for installation from the shell.

i use dockge. can deploy using docker compose.

https://hub.docker.com/r/uroni/urbackup-server

version: '2'

services:
  urbackup:
    image: uroni/urbackup-server:latest
    container_name: urbackup
    restart: unless-stopped
    environment:
      - PUID=1000 # Enter the UID of the user who should own the files here
      - PGID=100  # Enter the GID of the user who should own the files here
      - TZ=Europe/Berlin # Enter your timezone
    volumes:
      - /path/to/your/database/folder:/var/urbackup
      - /path/to/your/backup/folder:/backups
      # Uncomment the next line if you want to bind-mount the www-folder
      #- /path/to/wwwfolder:/usr/share/urbackup
    network_mode: "host"
    # Uncomment the following two lines if you're using BTRFS support
    #cap_add:
    #  - SYS_ADMIN
    # Uncomment the following two lines if you're using ZFS support
    #devices:
    #  - /dev/zfs:/dev/zfs

dockge is easily installable from truenas apps. once done, access dockge, then deploy that docker compose after editting it for your specific config, then it should be up and running.

Yes. You’d want to change the paths.

But a more appropriate way is to use the Dockge feature to convert a command line into a compose file.

Which I demonstrate in this video