Protainer Docker Failed to Install

New to Docker and Portainer so sure this is a simple issue. Trying to move from linux server for Channels to Docker and get this error.

 Installing Channels DVR..
 Downloading Channels DVR 2021.01.15.1649 (linux-x86_64) to //channels-dvr......
 ln: channels-dvr/latest: Not supported
 ERROR: Installation of Channels DVR failed.
 ERROR: Please contact [email protected] with the full output above.

Trying to find a simple config file but this is all I can find.

{
    "AppArmorProfile": "docker-default",
    "Args": [
        "-c",
        "./run.sh"
    ],
    "Config": {
        "AttachStderr": false,
        "AttachStdin": false,
        "AttachStdout": false,
        "Cmd": [
            "/bin/sh",
            "-c",
            "./run.sh"
        ],
        "Domainname": "",
        "Entrypoint": null,
        "Env": [
            "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
        ],
        "ExposedPorts": {
            "8089/tcp": {}
        },
        "Hostname": "docker",
        "Image": "fancybits/channels-dvr:latest",
        "Labels": {},
        "OnBuild": null,
        "OpenStdin": false,
        "StdinOnce": false,
        "Tty": false,
        "User": "",
        "Volumes": {
            "/channels-dvr": {},
            "/shares/DVR": {}
        },
        "WorkingDir": ""
    },
    "Created": "2021-01-24T20:50:07.382624282Z",
    "Driver": "overlay2",
    "ExecIDs": null,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/snap/docker/common/var-lib-docker/overlay2/0834fa9001e9fc3732a900005733242953ae903e4ecbe7486853f9064ecc2250-init/diff:/var/snap/docker/common/var-lib-docker/overlay2/6837118a784e10196a1597d72212a72a781e20c73592db5ac333ea5d3d26ffbf/diff:/var/snap/docker/common/var-lib-docker/overlay2/9696fae4068bec297410acb1a2b15deacc4d436c78915cc72b31e320be13638d/diff:/var/snap/docker/common/var-lib-docker/overlay2/701db2037e4adbd0c83b3d4428bc7799b0adbf60546554582034773d443aee08/diff:/var/snap/docker/common/var-lib-docker/overlay2/c84a2f2c564321dcbdcf1835bd0b69b5081b6945ddc0c38bff5a7eee5b8ff679/diff",
            "MergedDir": "/var/snap/docker/common/var-lib-docker/overlay2/0834fa9001e9fc3732a900005733242953ae903e4ecbe7486853f9064ecc2250/merged",
            "UpperDir": "/var/snap/docker/common/var-lib-docker/overlay2/0834fa9001e9fc3732a900005733242953ae903e4ecbe7486853f9064ecc2250/diff",
            "WorkDir": "/var/snap/docker/common/var-lib-docker/overlay2/0834fa9001e9fc3732a900005733242953ae903e4ecbe7486853f9064ecc2250/work"
        },
        "Name": "overlay2"
    },
    "HostConfig": {
        "AutoRemove": false,
        "Binds": [
            "ChannelsDVR-Edit:/shares/DVR",
            "ChannelsDVR-Edit:/channels-dvr"
        ],
        "BlkioDeviceReadBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceWriteIOps": null,
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "CapAdd": [
            "AUDIT_WRITE",
            "CHOWN",
            "DAC_OVERRIDE",
            "FOWNER",
            "FSETID",
            "KILL",
            "MKNOD",
            "NET_BIND_SERVICE",
            "NET_RAW",
            "SETFCAP",
            "SETGID",
            "SETPCAP",
            "SETUID",
            "SYS_CHROOT"
        ],
        "CapDrop": [
            "AUDIT_CONTROL",
            "BLOCK_SUSPEND",
            "DAC_READ_SEARCH",
            "IPC_LOCK",
            "IPC_OWNER",
            "LEASE",
            "LINUX_IMMUTABLE",
            "MAC_ADMIN",
            "MAC_OVERRIDE",
            "NET_ADMIN",
            "NET_BROADCAST",
            "SYSLOG",
            "SYS_ADMIN",
            "SYS_BOOT",
            "SYS_MODULE",
            "SYS_NICE",
            "SYS_PACCT",
            "SYS_PTRACE",
            "SYS_RAWIO",
            "SYS_RESOURCE",
            "SYS_TIME",
            "SYS_TTY_CONFIG",
            "WAKE_ALARM"
        ],
        "Capabilities": null,
        "Cgroup": "",
        "CgroupParent": "",
        "ConsoleSize": [
            0,
            0
        ],
        "ContainerIDFile": "",
        "CpuCount": 0,
        "CpuPercent": 0,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpuShares": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "DeviceCgroupRules": null,
        "DeviceRequests": null,
        "Devices": [
            {
                "CgroupPermissions": "rwm",
                "PathInContainer": "/dev/dri",
                "PathOnHost": "/dev/dri"
            }
        ],
        "Dns": [],
        "DnsOptions": null,
        "DnsSearch": null,
        "ExtraHosts": [],
        "GroupAdd": null,
        "IOMaximumBandwidth": 0,
        "IOMaximumIOps": 0,
        "Init": false,
        "IpcMode": "private",
        "Isolation": "",
        "KernelMemory": 0,
        "KernelMemoryTCP": 0,
        "Links": null,
        "LogConfig": {
            "Config": {},
            "Type": "json-file"
        },
        "MaskedPaths": [
            "/proc/asound",
            "/proc/acpi",
            "/proc/kcore",
            "/proc/keys",
            "/proc/latency_stats",
            "/proc/timer_list",
            "/proc/timer_stats",
            "/proc/sched_debug",
            "/proc/scsi",
            "/sys/firmware"
        ],
        "Memory": 0,
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "NanoCpus": 0,
        "NetworkMode": "host",
        "OomKillDisable": false,
        "OomScoreAdj": 0,
        "PidMode": "",
        "PidsLimit": null,
        "PortBindings": {
            "8089/tcp": [
                {
                    "HostIp": "",
                    "HostPort": "8089"
                }
            ]
        },
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyPaths": [
            "/proc/bus",
            "/proc/fs",
            "/proc/irq",
            "/proc/sys",
            "/proc/sysrq-trigger"
        ],
        "ReadonlyRootfs": false,
        "RestartPolicy": {
            "MaximumRetryCount": 0,
            "Name": "no"
        },
        "Runtime": "runc",
        "SecurityOpt": null,
        "ShmSize": 67108864,
        "UTSMode": "",
        "Ulimits": null,
        "UsernsMode": "",
        "VolumeDriver": "",
        "VolumesFrom": null
    },
    "HostnamePath": "/var/snap/docker/common/var-lib-docker/containers/7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac/hostname",
    "HostsPath": "/var/snap/docker/common/var-lib-docker/containers/7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac/hosts",
    "Id": "7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac",
    "Image": "sha256:c89c5a663a962c438fbd17c378a4f8ef866b874f55d6fbac8dc2603ac03d8ab7",
    "LogPath": "/var/snap/docker/common/var-lib-docker/containers/7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac/7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac-json.log",
    "MountLabel": "",
    "Mounts": [
        {
            "Destination": "/shares/DVR",
            "Driver": "local",
            "Mode": "z",
            "Name": "ChannelsDVR-Edit",
            "Propagation": "",
            "RW": true,
            "Source": "/var/snap/docker/common/var-lib-docker/volumes/ChannelsDVR-Edit/_data",
            "Type": "volume"
        },
        {
            "Destination": "/channels-dvr",
            "Driver": "local",
            "Mode": "z",
            "Name": "ChannelsDVR-Edit",
            "Propagation": "",
            "RW": true,
            "Source": "/var/snap/docker/common/var-lib-docker/volumes/ChannelsDVR-Edit/_data",
            "Type": "volume"
        }
    ],
    "Name": "/ChannelsDVR",
    "NetworkSettings": {
        "Bridge": "",
        "EndpointID": "",
        "Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "HairpinMode": false,
        "IPAddress": "",
        "IPPrefixLen": 0,
        "IPv6Gateway": "",
        "LinkLocalIPv6Address": "",
        "LinkLocalIPv6PrefixLen": 0,
        "MacAddress": "",
        "Networks": {
            "host": {
                "Aliases": null,
                "DriverOpts": null,
                "EndpointID": "",
                "Gateway": "",
                "GlobalIPv6Address": "",
                "GlobalIPv6PrefixLen": 0,
                "IPAMConfig": {},
                "IPAddress": "",
                "IPPrefixLen": 0,
                "IPv6Gateway": "",
                "Links": null,
                "MacAddress": "",
                "NetworkID": "8b85e9bb40cedc969579913b1d5b8aaf865aca856ed5a26d483c3acb83835944"
            }
        },
        "Ports": {},
        "SandboxID": "d26ecd9d4d61be9caf8b2cd2efc78a88203bcb0c53fca23de66b16ab71ca21f1",
        "SandboxKey": "/var/snap/docker/471/run/docker/netns/default",
        "SecondaryIPAddresses": null,
        "SecondaryIPv6Addresses": null
    },
    "Path": "/bin/sh",
    "Platform": "linux",
    "Portainer": {
        "ResourceControl": {
            "Id": 21,
            "ResourceId": "7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac",
            "SubResourceIds": [],
            "Type": 1,
            "UserAccesses": [],
            "TeamAccesses": [],
            "Public": false,
            "AdministratorsOnly": true,
            "System": false
        }
    },
    "ProcessLabel": "",
    "ResolvConfPath": "/var/snap/docker/common/var-lib-docker/containers/7743f8e8ba163237da6fad76d164c61c0284d83ed7de9da21a72727768d84dac/resolv.conf",
    "RestartCount": 0,
    "State": {
        "Dead": false,
        "Error": "",
        "ExitCode": 1,
        "FinishedAt": "2021-01-24T20:50:22.577370006Z",
        "OOMKilled": false,
        "Paused": false,
        "Pid": 0,
        "Restarting": false,
        "Running": false,
        "StartedAt": "2021-01-24T20:50:08.079493857Z",
        "Status": "exited"
    }
}

Sounds like the file system doesn't support symlinks?

If you are talking about

        "Binds": [
            "ChannelsDVR-Edit:/shares/DVR",
            "ChannelsDVR-Edit:/channels-dvr"
        ],

Then "ChannelsDVR-Edit" is a SMB share that I have used for my Channels DVR linux server via FSTAB mounting.

Don't use a SMB share for the second one.

OK so for a Docker based Server the config needs to be on the locally mounted drive space.

Well it's up and running now but cannot restore from backup. The backup is of course on the SMB share that was mounted to the old linux server with fstab. Maybe in order to make it work in need to mount the SMB to the Linux server running docker instead of as a SMB share through Portainer.

Is there an error in the log or on screen? What exactly is not working.

When in the /restore screen I select the location "/shares/DVR/Database" but he arrows just spin. Never give me a list to restore from.

There may be too many backups. Make an Old folder and move all except the latest there

OK that did it. Now it's using the "share/DVR" to store the database. :slight_smile: