You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/build_from_dockerfile.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ req := ContainerRequest{
40
40
## Dynamic Build Context
41
41
42
42
If you would like to send a build context that you created in code (maybe you have a dynamic Dockerfile), you can
43
-
send the build context as an `io.Reader` since the Docker Daemon accepts is as a tar file, you can use the [tar](https://golang.org/pkg/archive/tar/) package to create your context.
43
+
send the build context as an `io.Reader` since the Docker Daemon accepts it as a tar file, you can use the [tar](https://golang.org/pkg/archive/tar/) package to create your context.
44
44
45
45
46
46
To do this you would use the `ContextArchive` attribute in the `FromDockerfile` struct.
Or you can add a list of files in ContainerRequest's struct, which can be copied before the container started:
20
+
Or you can add a list of files in the `ContainerRequest` initialization, which can be copied before the container starts:
21
21
22
22
```go
23
23
ctx:= context.Background()
@@ -45,7 +45,7 @@ It's also possible to copy an entire directory to a container, and that can happ
45
45
46
46
It's important to notice that, when copying the directory to the container, the container path must exist in the Docker image. And this is a strong requirement for files to be copied _before_ the container is started, as we cannot create the full path at that time.
47
47
48
-
Once we understood that, there are two ways to copy directories to a container. The first one is using the existing `CopyFileToContainer` method, which will internally check if the host path is a directory, internally calling the new `CopyDirToContainer` method if needed:
48
+
There are two ways to copy directories to a container. The first way uses the existing `CopyFileToContainer` method, which will internally check if the host path is a directory, internally calling the new `CopyDirToContainer` method if needed:
49
49
50
50
```go
51
51
ctx:= context.Background()
@@ -79,7 +79,7 @@ if err != nil {
79
79
}
80
80
```
81
81
82
-
And the second way is using the `CopyDirToContainer` method which, as you probably know, needs the existence of the parent directory where to copy the directory:
82
+
And the second way uses the `CopyDirToContainer` method which, as you probably know, needs the existence of the parent directory in order to copy the directory:
Copy file name to clipboardExpand all lines: docs/features/using_podman.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# Using Podman instead of Docker
2
2
3
-
Testcontainers supports to use Podman (rootless or rootful) instead of Docker.
3
+
Testcontainers-go supports the use of Podman (rootless or rootful) instead of Docker.
4
4
In most scenarios no special setup is required.
5
-
Testcontainers will automatically discover the socket based on the `DOCKER_HOST` or the `TC_HOST` environment variables.
6
-
Alternatively you can also configure the host with a `.testcontainers.properties` file.
5
+
Testcontainers-go will automatically discover the socket based on the `DOCKER_HOST` or the `TC_HOST` environment variables.
6
+
Alternatively you can configure the host with a `.testcontainers.properties` file.
7
7
The discovered Docker host is also taken into account when starting a reaper container.
8
8
9
9
There's currently only one special case where additional configuration is necessary: complex container network scenarios.
10
10
11
-
By default Testcontainers takes advantage of the default network settings both Docker and Podman are applying to newly created containers.
11
+
By default Testcontainers-go takes advantage of the default network settings both Docker and Podman are applying to newly created containers.
12
12
It only intervenes in scenarios where a `ContainerRequest` specifies networks and does not include the default network of the current container provider.
13
13
Unfortunately the default network for Docker is called _bridge_ where the default network in Podman is called _podman_.
14
14
It is not even possible to create a network called _bridge_ with Podman as Podman does not allow creating a network with the same name as an already existing network mode.
0 commit comments