Code Monkey home page Code Monkey logo

Comments (1)

Bazmundi avatar Bazmundi commented on June 26, 2024

One means "correct" this problem Hypriot 1.12.3 is actually cited in /etc/network/interfaces.d/50-cloud-init.cfg:

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}

So, I found the means was:

  1. Creating and editing /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg per guidance in /etc/network/interfaces.d/50-cloud-init.cfg, then
  2. Updating /etc/network/interfaces.d/50-cloud-init.cfg with static IP

When in/etc/network/interfaces.d/50-cloud-init.cfg change:

iface eth0 inet dhcp

to:

iface eth0 inet static
    address <your IPv4 address>/24
    gateway <your IPv4 gateway>

This at least fixes the problem for Hypriot 1.12.3.

The real fix seems to need to be either:

  1. flash needs be updated to detect a static IP being set and then carry out the knock on changes, or
  2. flash example be supplied if flash could, in fact, push /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg into the image and likely push an change to /etc/network/interfaces.d/50-cloud-init.cfg.

If it wasn't for the knock on problem that is.

The problem now though is that when I try docker-compose up I get:

$ docker-compose up
Pulling mybroker (emqx/emqx:v3.2.7)...
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:59161->[::1]:53: read: connection refused

Created new issue to cover the impact of so-called "fix" of static IP.

Cheers,
A

from image-builder-rpi.

Related Issues (20)

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.