vdsm / virtual-dsm

Virtual DSM in a Docker container.
MIT License
2.53k stars 339 forks source link

Docker CLI Local file URL not working #810

Open MicrosoftPro12 opened 3 weeks ago

MicrosoftPro12 commented 3 weeks ago

Operating system

Alpine virt 3.12.3 x86_64 on Android 7

Description

I setup a Docker running on Alpine x86_64 using qemu on Android. (Don't ask me why I'm running this thing on Android instead of some normal computer. I know that's ridiculous but I only have some outdated Android devices that are free to use.) (I'm using this container as a honeypot, that's absolutely crazy, right?) Everything goes normally until I started running the container. The curl was unable to download installer since "getaddrinfo() thread failed to start". And I think "Okay then, I just have to download the file manually". File downloaded successfully, then I added "--env URL=DSM_VirtualDSM_69057.pat" to the docker run command. (I'm sure the install file is at the place where it should be.)

Then it says:

Warning: could not detect country to select mirror! Install: Downloading installer... curl: (6) getaddrinfo() thread failed to start ERROR: Failed to download https://global.syno...(got cut down by tmux)

Well this environment variable is supposed to be working I guess... but it still trying to download the installer instead of reading the existing file.

Docker compose

docker run -it --rm -p 6001:5000 -p 6002:5001 -p 25:22 --name=virtual-dsm --cap-add NET_ADMIN --stop-timeout 120 --volume=/root/docker/virtual-dsm:/storage --env RAM_SIZE=2G --env DISK_SIZE=6G --env KVM=N --env URL=DSM_VirtualDSM_69057.pat vdsm/virtual-dsm

Docker log

See screenshots.

Screenshots (optional)

截屏2024-09-06 01 03 34