Skip to content

Network

Source: src/Docker/Network.ts

A Docker network managed through the active Docker context.

Existing same-name networks are treated as foreign unless the engine is explicitly allowed to adopt them with --adopt or adopt(true).

const network = yield* Docker.Network("app-network", {
name: "app-network",
});
const network = yield* Docker.Network("app-network", {
name: "shared-app-network",
}).pipe(adopt(true));