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

Podman : using network is not working #4383

Closed
alekssd opened this issue Aug 19, 2021 · 2 comments
Closed

Podman : using network is not working #4383

alekssd opened this issue Aug 19, 2021 · 2 comments

Comments

@alekssd
Copy link

alekssd commented Aug 19, 2021

Hi,

I'm using testcontainers to create containers and a network for them.
When running on docker, everythings work fine. but when it run on podman, an error "network not found" appears when launching a container

Network network = Network.newNetwork(); GenericContainer<?> amq = new GenericContainer<>(ACTIVE_MQ_DOCKER_IMAGE_NAME) .withExposedPorts(CONTAINER_CONFIG.getPort()) .withLogConsumer(new Slf4jLogConsumer(getLogger("ActiveMQ"))) .withNetwork(network) .withNetworkAliases(CONTAINER_CONFIG.getHost());

error on podman :
10:43:34.844 [main] ERROR 🐳 [docker.ssqti.ca/ssq/ca/ssq/activemq/activemq:5.16.0] - Could not start container com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"cause":"network not found","message":"container create: container 6c2cdcb8197b8f6f5a483d9e1f808c3ca3e08b8525b8d3629937749de300dddb has network aliases for network \"af35c13cbd6b85d4a9a74f3ed2514e0962ef0651c1723cb1b2043dbb03fa9a0c\" but is not part of that network: network not found","response":500}

Even if network actually exists :
image

@bsideup
Copy link
Member

bsideup commented Aug 19, 2021

Hi @alekssd,

Since it works fine with Docker, please report this issue to Podman, especially given that you're getting status code 500 from them.

@bsideup bsideup closed this as completed Aug 19, 2021
@0x7d7b
Copy link

0x7d7b commented Feb 8, 2022

Just for completeness. This issue has been fixed here: containers/podman#11285

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

No branches or pull requests

3 participants