testcontainers-rs: "failed to pull the image" error
I run cargo t in this repo after cloning it, and I get this error for some tests:
---- runners::async_runner::tests::async_run_command_should_map_exposed_port stdout ----
Error: failed to pull the image 'simple_web_server:latest', error: Docker responded with status code 404: pull access denied for simple_web_server, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Here are the tests for which I get this error:
test runners::async_runner::tests::async_run_command_should_map_exposed_port ... FAILED
test runners::async_runner::tests::async_should_rely_on_network_mode_when_network_is_provided_and_settings_bridge_empty ... FAILED
test runners::async_runner::tests::async_should_return_error_when_non_bridged_network_selected ... FAILED
test runners::async_runner::tests::async_run_command_should_map_exposed_port_udp_sctp ... FAILED
The error message suggests I need to login on Docker but I’m already logged in (via docker login in the terminal).
How do I fix this?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 27 (14 by maintainers)
thanks for your help!