Skip to content

Conversation

stepancheg
Copy link
Contributor

Fixes #12145.

- because iptables disabled, `docker run --expose=` does not expose the port;
if a nested container needs to expose ports, inside gVisor use `docker run --network=host`
- docker 28 may not work
- docker compose does not work ([#7469](https://github.com/google/gvisor/issues/7469))
Copy link
Contributor

Choose a reason for hiding this comment

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

the only issue with docker compose is when it uses bridge network driver when docker compose run, there is DNS issue. please see

func testDockerComposeBuild(ctx context.Context, t *testing.T, d *dockerutil.Container, opts dockerCommandOptions) {

docker compose mostly works in gVisor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the phrase about docker compose, because I don't understand how significant the issue with DNS.

If it is significant, I can add it back.

@milantracy
Copy link
Contributor

thanks! other than the nitpick, lgtm

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.

Document limitations of docker-in-gvisor
2 participants