#RaspberryPi – Setup SSH passwordless access to remote work with #docker 🐳

Buy Me A Coffee

Hi !

Due to some weird configurations, I’m having issues building some .NET 5 docker images locally in my Windows 10 machine. So I decided to use a Raspberry 4 as build server, and 1st step is to setup the SSH access without the need of username / password. The main resource is an official one fro the Raspberry Pi org: Passwordless SSH access.

Once we finished these steps, we can easyly configure a TCP-enabled Docker.

I followed the next steps. First, let’s edit docker.service with the command:

sudo nano /lib/systemd/system/docker.service 

And add [-H tcp://0.0.0.0:2375] at [ExecStart] section

And restart the device or just the needed services

  • run sudo systemctl daemon-reload
  • run sudo systemctl restart docker

In next posts, how to add the needed configuration to Visual Studio Code to build the images remotely in the Raspberry Pi.

Happy coding!

Greetings

El Bruno

More posts in my blog ElBruno.com.

More info in https://beacons.ai/elbruno


My posts on Raspberry Pi ⚡🐲⚡

Dev posts for Raspberry Pi
Tools and Apps for Raspberry Pi
Setup the device
Hardware


¿Con ganas de ponerte al día?

En Lemoncode te ofrecemos formación online impartida por profesionales que se baten el cobre en consultoría:

Advertisement

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: