Skip to content

[FEAT] Allow user to enable remote debugging port #11

@CliffHan

Description

@CliffHan

Is this a new feature request?

  • I have searched the existing issues

Wanted change

User may want to control chrome in container, to do some automatic staff.

I've tried to use CHROME_CLI, but it's not working.

Reason for change

I want to enable remote debugging for chrome in container. Here's my docker-compose.yml, with CHROME_CLI set:

---
services:
  chrome:
    image: linuxserver/chrome:latest
    container_name: chrome
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Shanghai
      - SELKIES_MANUAL_WIDTH=1280
      - SELKIES_MANUAL_HEIGHT=720
      - CHROME_CLI="--remote-debugging-address=0.0.0.0 --remote-debugging-port=9222"
    volumes:
      - ./config:/config
    ports:
      - 4000:3000
      - 4001:3001
      - 9222:9222
    shm_size: "1gb"
    restart: unless-stopped

But it's not working. When I use exec bash to check ports in container, I found port 9222 was not listening, while 3000/3001/8082 works as expected.

Not sure if this is a bug.

Proposed code change

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions