From f90cb198470d5c350ab44cb0014b77fd55d605a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dobru=C5=A1e=20Luk=C3=A1=C5=A1ov=C3=A1?= Date: Tue, 17 Mar 2026 16:38:51 +0100 Subject: [PATCH 1/2] Add docker cp command --- midpoint/install/containers/docker/index.adoc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/midpoint/install/containers/docker/index.adoc b/midpoint/install/containers/docker/index.adoc index 44547af8..482f1e77 100644 --- a/midpoint/install/containers/docker/index.adoc +++ b/midpoint/install/containers/docker/index.adoc @@ -96,6 +96,21 @@ Depending on your environment, this may take several minutes. NOTE: If you encounter problems, you can check midPoint logs in the console using the Docker logging mechanism: `docker logs midpoint_server` +* *Copy files between host and container*: ++ +[source,bash] +---- +docker cp file.csv midpoint_server-1:/opt/midpoint/var/file.csv +---- ++ +The `docker cp` command enables you to copy files or directories between your local system and a running container. + +In this example, the file `file.csv` is copied from your host machine into the `/opt/midpoint/var` directory inside the `midpoint_server-1` container. + +This is useful when you need to quickly upload files (e.g., CSV resources or configuration files) into the container. + +NOTE: You can also copy files in the opposite direction (from container to host) by reversing the source and destination. + * *Stop the environment*: + [source,bash] @@ -143,6 +158,9 @@ The following table shows the most common commands: | `docker ps -a` | Lists all containers currently used in the system (including stopped containers). +|`docker cp` +|Copies and pastes files or directories between your host system and a running container. + |==== [NOTE] From 2ce257bd254ec5c9a51214b8112bdba0bfb90428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dobru=C5=A1e=20Luk=C3=A1=C5=A1ov=C3=A1?= Date: Thu, 19 Mar 2026 13:47:22 +0100 Subject: [PATCH 2/2] Corrected the explanation of docker cp --- midpoint/install/containers/docker/index.adoc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/midpoint/install/containers/docker/index.adoc b/midpoint/install/containers/docker/index.adoc index 482f1e77..6306471f 100644 --- a/midpoint/install/containers/docker/index.adoc +++ b/midpoint/install/containers/docker/index.adoc @@ -100,16 +100,18 @@ NOTE: If you encounter problems, you can check midPoint logs in the console usin + [source,bash] ---- -docker cp file.csv midpoint_server-1:/opt/midpoint/var/file.csv +docker cp ---- + The `docker cp` command enables you to copy files or directories between your local system and a running container. +The arguments of the command are: -In this example, the file `file.csv` is copied from your host machine into the `/opt/midpoint/var` directory inside the `midpoint_server-1` container. +* The source path (file or directory) +* The destination path (file or directory) +Each path can refer either to your local system or to a container (e.g. `container_name:/path`). This is useful when you need to quickly upload files (e.g., CSV resources or configuration files) into the container. -NOTE: You can also copy files in the opposite direction (from container to host) by reversing the source and destination. * *Stop the environment*: + @@ -158,7 +160,7 @@ The following table shows the most common commands: | `docker ps -a` | Lists all containers currently used in the system (including stopped containers). -|`docker cp` +|`docker cp SOURCE DEST` |Copies and pastes files or directories between your host system and a running container. |====