Skip to content

Commit 676e942

Browse files
authored
Update README.md
1 parent 3b58886 commit 676e942

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ println("Exit code: ${execInfo.exitCode}") // Exit code: 1
192192
#### Copy a file from container to host
193193
```kotlin
194194
client.containers.copyFileFrom(
195-
containerId,
195+
container = containerId,
196196
sourcePath = "/var/log/app.log",
197197
destinationPath = "/tmp/app.log"
198198
)
@@ -201,7 +201,7 @@ client.containers.copyFileFrom(
201201
##### Copy a file from host to container
202202
```kotlin
203203
client.containers.copyFileTo(
204-
containerId,
204+
container = "bailarina-caputina",
205205
sourcePath = "/home/user/config.json",
206206
destinationPath = "/app/config/"
207207
)
@@ -210,7 +210,7 @@ client.containers.copyFileTo(
210210
#### Copy a directory from container to host
211211
```kotlin
212212
client.containers.copyDirectoryFrom(
213-
containerId,
213+
container = "knoten",
214214
sourcePath = "/app/logs",
215215
destinationPath = "/tmp/container-logs"
216216
)
@@ -219,17 +219,16 @@ client.containers.copyDirectoryFrom(
219219
#### Copy a directory from host to container
220220
```kotlin
221221
client.containers.copyDirectoryTo(
222-
containerId,
222+
container = "globson",
223223
sourcePath = "/home/user/configs",
224224
destinationPath = "/app/"
225225
)
226226
```
227227

228228
#### Advanced copy with custom options
229229
```kotlin
230-
// Copy with custom options
231-
client.containers.copy.copyTo(
232-
container = containerId,
230+
client.containers.copyTo(
231+
container = "tapioca",
233232
destinationPath = "/app/data",
234233
tarArchive = myTarArchive
235234
) {

0 commit comments

Comments
 (0)