Skip to content

fix: preserve publish, mount mode, and entrypoint args - #60

Merged
Rhevin merged 1 commit into
masterfrom
fix/run-args-publish-volume-entrypoint
Nov 10, 2026
Merged

Rhevin merged 1 commit into
masterfrom
fix/run-args-publish-volume-entrypoint

Conversation

@Rhevin

@Rhevin Rhevin commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • --publish keeps the host IP and a non-TCP protocol (127.0.0.1:8080:80, 5353:53/udp). IPv6 host addresses are bracketed.
  • Bind and named volumes keep :ro when the compose mount is read-only.
  • A multi-element entrypoint uses the first element as --entrypoint and prepends the rest to the command.

Test plan

  • go test ./internal/backend/ ./cmd/ ./internal/compose/ (99 passed)
  • up --dry-run on a compose file with a host IP, UDP, a read-only bind, and entrypoint: ["sh","-c",...]
  • apple-compose up --force-recreate once on any stack that uses these fields. The config hash does not include them, so a normal up will not recreate an existing container.

container run was dropping the host IP, protocol, and read-only bit, and joining entrypoint elements into one string.
@Rhevin
Rhevin merged commit 977c436 into master Nov 10, 2026
5 checks passed
@Rhevin
Rhevin deleted the fix/run-args-publish-volume-entrypoint branch November 10, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant