Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add Docker port-forwarding note #7176

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

datumest
Copy link
Contributor

This change documents the settings necessary for port forwarding when deploying to Docker.

Skaffold does not publish user-defined port forwards to the Docker daemon unless resourceType is set to container.

Fixes: #7175

Description

Docker port forwarding is currently undocumented, and required a little code reading to get working properly. This change documents a new resourceType, container, which the Docker deploy code checks for.

This change documents the settings necessary for port forwarding when deploying to Docker.

Skaffold [does not publish](https://github.com/nkubala/skaffold/blob/16b931d138b6f10c18dfc04a4f8ca5057d612fe6/pkg/skaffold/deploy/docker/port.go#L94) user-defined port forwards to the Docker daemon unless `resourceType` is set to `container`.
@datumest datumest requested a review from a team as a code owner March 10, 2022 02:13
@datumest datumest requested a review from aaron-prindle March 10, 2022 02:13
Copy link
Contributor

@MarlonGamez MarlonGamez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to these docs @datumest ! It's much appreciated

@MarlonGamez MarlonGamez merged commit e0bb133 into GoogleContainerTools:main Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port Forwarding undocumented for Docker
2 participants