Use Docker on Raspberry Pi for other things

So, a while ago I managed to follow the instructions to install Pluto on my Channels Raspberry Pi, which I did successfully, and Pluto has worked fine for ages and continues to do so.

Recently I've been trying to read the articles around using Docker on my Pi.

I want to be able to dial in to docker on the Pi from my Windows PC and install other applications.

Is this possible, and can you help with a step-by-step guide please.

I've been trying to access Docker for a while with no luck, I understand I need an SSH key, which I have, but I'm not getting anywhere, I've tried to replicate what I did to install Pluto, but I think since I have it already, the process doesn't work, or I'm doing something wrong.

An absolute idiot's step by step guide, or a link to an idiot's guide would be greatly appreciated.

Thank you

Note: I have managed to log in to the Pi with SSH using Windows Terminal.

I'm slowly working things out and I'm going to try and see if I can do anything with docker from here.

Any help is still apreciated.

Now that you're connected you can run docker commands

1 Like

thanks, I've found a docker cheat sheet, I'll see what I can do from here.

I have tried and failed to find a way to run a wake-on-lan server from a docker container on the Channels Pi. Anyone have any ideas?

What are you trying to wake? I don't think the Pi has sleep mode?

It sort of does. You can halt the device, which puts it in a low power state. Then you need to short one of the GPIO pins to send the wake-up/start signal. (This is what the cases that have a power button do. It's not really powering down the system, but rather shuts down the OS but leaves the CPU in a low-power state to listen for the wake signal.)

I don't believe the Ethernet controller on the Pi supports WOL. (But, you can use ethtool to check and see if it's there.)

Or have we misunderstood you, and you are trying to send the wake packets from the Pi to other devices on your network?

I am trying to use the Pi server to wake another PC on my LAN.

If you're running from Docker, you must use host networking. Then, your container image needs to have an appropriate tool installed. (I personally like etherwake, but wakeonlan works well, too. Usually these programs are not installed by default in container images.)

Once those two conditions are met, have the container issue etherwake $MAC, replacing the variable with the MAC address of the WOL-enabled device on your network.

I've been trying to get a few docker containers to work but I always get "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"

E.g. Docker Hub

When I try to start any of the images, they get stuck in "restarting"

Those dockers were created for Intel cpu. You would have to ask their creators to make an ARM version.

Thanks. I found this one that is built for Pi but it doesn't support linux/arm64/v8 yet, so I've asked the developer for assistance.