Skip to content

DockerBrowserProvider ​

Category: Web

Source: docker_browser_provider.dart

Classes ​

DockerBrowserProvider ​

Docker-based browser provider.

Constructor ​

dart
DockerBrowserProvider({
    required this.image,
    required this.port,
    required this.sessionId,
    this.headed = false,
  })

Properties ​

PropertyTypeDescription
imageString
portint
sessionIdString
headedbool
nameString get
isConfiguredbool get
nameString get
isConfiguredbool get

Methods ​

String buildWsUrl(int port) ​
static int? parseHostPort(String portOutput) ​

Parse host port from Docker port output.

Handles IPv4 (0.0.0.0:1234), IPv6 ([::]:1234), and localhost (127.0.0.1:3000) formats.

List<String> buildDockerRunArgs() ​
Future<BrowserEndpoint> provision() ​
static Future<void> cleanupStaleContainers() ​

Cleanup stale containers from previous sessions.

Released under the MIT License.