Skip to content
Discussion options

You must be logged in to vote

You don't provide how you create the container via the API but based from you logs it uses /v1.41/containers/create which is the docker compat API endpoint and the one default to using the bridge network (--network bridge) not the pasta mode (--network pasta), so if you run your cli with --network bridge you see the same behavior.

What you would need to do is set the NetworkMode to pasta in your API payload or in containers.conf change the default netns to pasta so the docker endpoint respects that as well

[containers]
netns="pasta"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexmaret
Comment options

Answer selected by alexmaret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants