blaise-io / acelink

Play Ace Streams on macOS using Docker.
MIT License
747 stars 49 forks source link

Use rancher desktop i.s.o. docker desktop #72

Open Seidon1984 opened 9 months ago

Seidon1984 commented 9 months ago

Describe the problem you are encountering
I would like to use ace-link with other docker providers, like rancher desktop. I tried to use rancher desktop i.s.o. docker desktop and ace link app can paste the acestream and it says 'Download docker...'

Note: Don't share AceStream IDs or websites containing pirated content.

blaise-io commented 8 months ago

Does Rancher offer the same CLI as Docker? If so, you need to make sure docker if available on your path, but it could just be an alias for Rancher. If it does not offer the same CLI, I likely won't support it in Ace Link.

chiva commented 2 months ago

@blaise-io rancher is pretty much an in-place replacement for docker, and mimics docker very closely

$ docker context inspect --format '{{.Endpoints.docker.Host}}'
unix:///Users/my_user/.rd/docker.sock
$ docker context inspect
[
    {
        "Name": "rancher-desktop",
        "Metadata": {
            "Description": "Rancher Desktop moby context"
        },
        "Endpoints": {
            "docker": {
                "Host": "unix:///Users/my_user/.rd/docker.sock",
                "SkipTLSVerify": false
            }
        },
        "TLSMaterial": {},
        "Storage": {
            "MetadataPath": "/Users/my_user/.docker/contexts/meta/b547d66a5de60e5f0843aba28283a8875c2ad72e99ba076060ef9ec7c09917c8",
            "TLSPath": "/Users/my_user/.docker/contexts/tls/b547d66a5de60e5f0843aba28283a8875c2ad72e99ba076060ef9ec7c09917c8"
        }
    }
]
$ docker context ls
NAME                DESCRIPTION                               DOCKER ENDPOINT                               ERROR
default             Current DOCKER_HOST based configuration   unix:///var/run/docker.sock
desktop-linux                                                 unix:///Users/my_user/.docker/run/docker.sock
rancher-desktop *   Rancher Desktop moby context              unix:///Users/my_user/.rd/docker.sock
$ which docker
/Users/my_user/.rd/bin/docker
$ ls -al /Users/my_user/.rd/bin/docker
lrwxr-xr-x@ 1 my_user  staff  80 Jan  9 11:14 /Users/my_user/.rd/bin/docker -> /Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/bin/docker

But still not detected automatically Any chance to make it compatible?