@@ -23,29 +23,25 @@ export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
2323
2424#### Linux
2525
26- 1 . Ensure the Podman socket is exposed:
27-
28- Rootless:
29-
30- ``` bash
31- systemctl --user status podman.socket
32- ```
33-
34- Rootful:
35-
36- ` ` ` bash
37- sudo systemctl enable --now podman.socket
38- ` ` `
39-
40- 2. Export the ` DOCKER_HOST` :
41-
42- ` ` ` bash
43- {% raw %}
44- export DOCKER_HOST=unix://$(
45- podman info --format ' {{.Host.RemoteSocket.Path}}'
46- )
47- {% endraw %}
48- ` ` `
26+ Ensure the Podman socket is exposed, choose between rootless or rootful:
27+
28+ ``` bash title="Rootless"
29+ systemctl --user status podman.socket
30+ ```
31+
32+ ``` bash title="Rootful"
33+ sudo systemctl enable --now podman.socket
34+ ```
35+
36+ Export the ` DOCKER_HOST ` :
37+
38+ ``` bash
39+ {% raw %}
40+ export DOCKER_HOST=unix://$(
41+ podman info --format ' {{.Host.RemoteSocket.Path}}'
42+ )
43+ {% endraw %}
44+ ```
4945
5046### Known issues
5147
@@ -95,11 +91,14 @@ The way Colima works is it periodically checks for exposed ports, and then forwa
9591
9692You can use a composite wait strategy to additionally wait for a port to be bound, on top of an existing wait strategy. For example:
9793
98- ` ` ` javascript
94+ ``` javascript linenums="1"
9995const { GenericContainer , Wait } = require (" testcontainers" );
10096
10197const container = await new GenericContainer (" redis" )
102- .withWaitStrategy(Wait.forAll([Wait.forListeningPorts (), Wait.forLogMessage(" Ready to accept connections" )]))
98+ .withWaitStrategy (Wait .forAll ([
99+ Wait .forListeningPorts (),
100+ Wait .forLogMessage (" Ready to accept connections" )
101+ ]))
103102 .start ();
104103```
105104
0 commit comments