This container is a workstation with the pre-installed Ansible client and a remote user to allow for the connection over the ssh loop-back.
A correct working of this container depends on (ephemeral) SSH key materials that is NOT packaged with the container. These need to be provided from the host where the container is running via mounts. To initialize the key material, create and execute the following command:
param(
$dest = "D:\\lib\\containers\\ansible-workstation-data.1"
)
If(!(Test-Path -PathType Container $dest)) {
New-Item -ItemType Directory -Path $dest
}
$version="v1"
$image="docker.io/lspwd2/ansible_workstation_key_material_init"
docker run --rm -it `
-v "${dest}:/var/key_material" `
"${image}:${version}"
If you are using podman, replace docker with podman
The container is best started with a simple script that mounts the key material as /opt/key_material directory:
param(
$key_material_dir="D:\\lib\\containers\\ansible-workstation-data.1"
)
$image="docker.io/lspwd2/ansible_workstation"
$version="python3.9_v1"
docker run --rm -it `
--mount "type=bind,src=${key_material_dir},dst=/opt/key_material" `
"${image}:${version}"
Replace docker with podman if you are using Podman to run the container.
Content type
Image
Digest
sha256:70bb9e84d…
Size
814.7 MB
Last updated
over 1 year ago
docker pull lspwd2/ansible_workstation