Expected Behaviour
It should work offline (there is no need to make any network calls).
Actual Behaviour
It crashes
Testcontainer Logs
...
Steps to Reproduce
- Use the default setup from
PostgreSqlContainer (IMAGE = 'postgres:16')
- Run
docker pull postgres:16
- Disable internet
Error: (HTTP code 500) server error - failed to resolve reference "docker.io/library/postgres:16": failed to request Head …
Environment Information
- Operating System: macOS 15.5
- Docker Version: 28.3.2
- Node version: 24.3.0
- Testcontainers version: 11.5.1
Expected Behaviour
It should work offline (there is no need to make any network calls).
Actual Behaviour
It crashes
Testcontainer Logs
...
Steps to Reproduce
PostgreSqlContainer(IMAGE = 'postgres:16')docker pull postgres:16Environment Information