[GH-ISSUE #808] Enhancement: support for container option: --hostname #496

Closed
opened 2026-03-01 21:43:55 +03:00 by kerem · 0 comments
Owner

Originally created by @MarcinFalkowski on GitHub (Sep 9, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/808

Currently container option --hostname is not supported.

Example:

name: container-hostname
on: push

jobs:
  with-hostname:
    runs-on: ubuntu-latest
    container:
      image: node:12-buster-slim
      options: "--hostname my.host.local"
    steps:
      - run: |
          [[ $(uname -n) == "my.host.local" ]]

above example will fail, because the container has default hostname, not requested hostname: my.host.local

Expected behaviour:

above example run successfully

Originally created by @MarcinFalkowski on GitHub (Sep 9, 2021). Original GitHub issue: https://github.com/nektos/act/issues/808 Currently container option `--hostname` is not supported. Example: ``` name: container-hostname on: push jobs: with-hostname: runs-on: ubuntu-latest container: image: node:12-buster-slim options: "--hostname my.host.local" steps: - run: | [[ $(uname -n) == "my.host.local" ]] ``` above example will fail, because the container has default hostname, not requested hostname: `my.host.local` # Expected behaviour: above example run successfully
kerem 2026-03-01 21:43:55 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#496
No description provided.