Coder Social home page Coder Social logo

balena-avahi's Introduction

mDNS/.local resolution with Avahi within a container

This example project demonstrates how to install Avahi and nss-mdns in order to resolve *.local hostnames via mDNS within a container.

The motivation behind this example project is that while it is already possible to resolve *.local hostnames from within this balena host OS, currently it is not possible to do that within a container without installing a separate mDNS resolver there.

The part with setting up systemd is taken directly from the Balena Services Masterclass. On top of that the only necessary step is to install Avahi and nss-mdns.

Note: While systemd-resolved provides .local resolution capabilities as well, we recommend using Avahi. The reason is that systemd-resolved depends on systemd-networkd or NetworkManager for its configuration, while Avahi can be used in standalone mode.

balena-avahi's People

Contributors

majorz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

balena-avahi's Issues

Balena Avahi systemd exits

I am looking to leverage balena-avahi/Dockerfile.template so that I can properly resolve *.local addresses - very useful in edge IoT applications. I've followed the example with the only major difference being using balenalib/amd64-python:3.8.11-run as my base image. When the container starts it immediately exits with following error message:

Trying to run as user instance, but the system has not been booted with systemd.

Has anyone gotten systemd to work properly within a container? I see lots of varying examples online.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.