SShortSingh.
Back to feed

Docker Networking Explained: Bridge, Host, None, and MacVLAN Modes

0
·3 views

Docker offers multiple network types to control how containers communicate with each other and the outside world. The default bridge network connects containers by IP address only, while custom bridge networks enable DNS-based communication, allowing containers to reach each other by name. Host networking removes isolation by sharing the host's IP and port space directly, making it the fastest but most collision-prone option. The 'none' network mode fully isolates a container from all external communication, making it suitable for batch jobs or cron tasks. MacVLAN assigns a real IP and MAC address to a container on the physical network, useful for integrating with legacy systems that require direct Layer 2 connectivity.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

DIY AI plush toy runs fully offline using Raspberry Pi and a local LLM

A developer has built an open-source AI-powered plush toy capable of holding philosophical conversations entirely on a local network without any internet connection. The toy uses a Raspberry Pi Zero WH paired with a USB microphone, camera, speaker, and a servo motor to move its head, with all processing handled by a connected computer running a local AI inference server. It can recognize multiple faces, detect emotions, remember past conversations, and respond with customizable personalities in English or Spanish. The full hardware build costs approximately €110, excluding the computer and inference server, and the project recommends at least an 8-billion-parameter language model. The source code is publicly available on GitHub under an MIT license, and the creator states the project is non-profit and collects no user data.

0
ProgrammingDEV Community ·

Google Gemini Now Officially Integrates with Webflow for AI-Powered CMS Workflows

Google Gemini has been added as a supported integration for Webflow, enabling website teams to incorporate AI-generated text, image analysis, and automated content pipelines into their projects. The integration offers three distinct implementation paths: a code-embed approach using a backend proxy for visitor-facing features, automation platforms like Zapier or Make for repeatable CMS and form-based workflows, and direct REST APIs for fully custom programmatic control. Webflow and Google both document the connection officially, with Webflow's integration page outlining the supported methods in detail. The integration is designed to assist with routine but time-consuming tasks such as drafting FAQ entries, writing product descriptions, or processing form submissions — not as a one-click, fully automated site builder. Teams are expected to handle server-side logic and human review, as the tools provide structured workflow support rather than end-to-end automation without oversight.

0
ProgrammingDEV Community ·

Why Software Needs State Machines: Lessons from an Order Fulfillment Model

A software design tutorial on DEV Community explores why applications must track not just data but system state to behave correctly. Using an e-commerce order fulfillment example, the author demonstrates that a single command like ship_order can require different actions depending on what has previously occurred. A naive implementation using a plain status string field can allow invalid transitions, such as shipping an unpaid order, because the field stores data without enforcing business rules. The tutorial distinguishes between ordinary data fields and a special 'state' field whose value actively governs what the system is allowed to do next. This distinction sets the conceptual foundation for introducing state machines as a principled solution to the problem.

0
ProgrammingDEV Community ·

Power BI Performance Issues Often Stem From Poor Data Modelling, Not DAX

Most Power BI problems — including incorrect totals, unresponsive slicers, and slow reports — are typically rooted in flawed data models rather than faulty DAX calculations. Data modelling in Power BI involves organizing tables and defining relationships between them to enable accurate and efficient analysis. Three common modelling approaches exist: flat tables, which store all data in one place and suit small datasets; star schemas, which connect a central fact table to surrounding dimension tables; and additional structures suited for more complex needs. A well-designed model improves reporting accuracy, dashboard performance, and the reliability of calculated metrics. It also makes reports easier to maintain and scale as data volumes grow over time.