WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
218 stars 54 forks source link

Docker Install on PR4100 #37

Closed akanoodles closed 5 years ago

akanoodles commented 5 years ago

So I’ve downloaded Docker install from https://wdcommunity.com/, but when I load it up on host:9000. I get Twonky Server and not Docker or Portainer. What is going on?

stefaang commented 5 years ago

Twonky is the DLNA server that ships with the WD firmware. Its management service runs on port 9000. Portainer is an example container for your docker environment... it also tries to run on port 9000.

You have a few options.

akanoodles commented 5 years ago

Hey @stefaang I tried both methods and still no luck.

stefaang commented 5 years ago

Please provide some more info

netstat -tulpn | grep 9000
docker ps
akanoodles commented 5 years ago

Sorry, I'm a noob at this, I have turned on SSH on my WD mycloud, setup a password. Used Terminal to try and ssh into the drive. But keep getting denied password. I also can't remove the original install of docker via the Web UI. reboot and it is always still there.

stefaang commented 5 years ago

Sorry, I can't help you to setup SSH access. Try searching the forum for a guide.

akanoodles commented 5 years ago

Ok, I'm in now

Screenshot 2019-05-29 at 14 21 49
stefaang commented 5 years ago

Now try this

cd /shares/Volume_1/Nas_Prog/docker
docker run -d -p 9000:9000 --restart always \
     -v /var/run/docker.sock:/var/run/docker.sock \
     -v $(pwd)/portainer:/data portainer/portainer

FYI, the netstat command is used here to check if any process is running on port 9000. It didn't find any. Docker ps shows currently running docker containers, but there's none.

akanoodles commented 5 years ago
Screenshot 2019-05-29 at 14 36 19
akanoodles commented 5 years ago

Yeah so, that what my problem is that the bin file doesnt work on port 9000

stefaang commented 5 years ago

Right, you tried uninstalling, so the daemon is not initialized. Remove docker.

cd /shares/Volume_1/Nas_Prog
del_apkg docker
rm -rf _docker docker

Reinstall docker. PS, you may just select the text and put it in code tags (triple backquote)

akanoodles commented 5 years ago

Awesome! Portainer now running!!!!

akanoodles commented 5 years ago

Thank you so much for your help, awesome work!

stefaang commented 5 years ago

np.

maxence-leblanc commented 4 years ago

Right, you tried uninstalling, so the daemon is not initialized. Remove docker.

cd /shares/Volume_1/Nas_Prog
del_apkg docker
rm -rf _docker docker

Reinstall docker. PS, you may just select the text and put it in code tags (triple backquote)

Hello, how do you reinstall docker pls ?

stefaang commented 4 years ago

You use those commands to delete docker. Then upload the docker binary via WD web interface.

If anything went wrong, you could run the installer manually.

cd /shares/Volume_1/Nas_Prog/docker

Disable the copy step

sed -i 's@cp -rf@#cp -rf@' install.sh

Then run the installer

./install.sh . ..

If anything goes wrong, create a new ticket.

latinoheat81 commented 2 years ago

hi someone could you tell me if it is possible to install Docker on wd my cloud 1 bay os5? if you can could you please tell me how to do it thanks in advance

phyppe commented 1 year ago

Ok, I'm in now Screenshot 2019-05-29 at 14 21 49

How do you get access I can't do it cause it says the password is wrong