HOWTO IGEL Managed Containers™ (IMC)
-
Secure, governed containerized workloads for the distributed edge.
-
IGEL Managed Containers™ (IMC) extends the IGEL Adaptive Secure Endpoint Platform™ with a managed container workload model for delivering controlled, policy-aligned applications and services.
-
Run containerized workloads on the immutable IGEL OS™ foundation, connect to existing OCI-compliant registries, and centrally govern deployment and lifecycle operations through the IGEL Universal Management Suite. IGEL Managed Containers helps organizations bring modern application flexibility to IT and OT environments while preserving endpoint trust, operational control, and enterprise policy alignment.
-
IGEL Web Site: IGEL Managed Containers™
-
IGEL KB: IGEL Managed Containers™
HOWTO Docker
NOTE: As for 8 August 2026, IMC cannot be used to create container images. The IGEL Community has an app recipe for Docker
Docker is a platform that lets you package, ship, and run applications in lightweight, portable units called containers.
Docker makes it easy to run an application the same way everywhere—on your laptop, a server, or in the cloud—without worrying about differences in operating systems or installed software.
Install IMC on IGEL OS
Follow steps outlined here:
Summary of steps:
-
Create a profile, include the IMC app, to configure the container storage as a percentage of remaining disk space on IGEL OS 12.10.0+. This will allocate from the 64GB IGEL OS disk
-
Assign the profile to IGEL OS device and select Save and apply now. This will apply the profile, install the IMC app, reboot device and allocate the storage for containers
-
If you are connecting to container registries (a service that stores and distributes container images) that require authentication, then create a profile to configure container registry credentials, assign the profile to IGEL OS device and select Save and apply now
Steps to create a container
Create two profiles and a container compose file (my-container-compose.yaml).
Summary of steps:
Classification: Undefined
Device file location: /services_rw/imc/config/
Owner: Root
Owner access rights:
Read
Write
Other access rights:
Read
-
Profile for the Container Configuration File: Create a profile, with IGEL BASE OS 12.10.0+, that will use the above yaml file. Save the profile. Then open this profile. Go to Contained Files and, in the Assign file search bar, enter the file name of the container configuration file (my-container-compose.yaml). Once the entry with the same file name appears, select it, save profile, assign to IGEL OS device, and select Save and apply now
-
Container Profile: Create a profile, with IGEL IMC app, add the container name (my-container) via Apps > IGEL Managed Containers > Containers and click Add item, in settings for the newly added container, add the container yaml file from above (my-container-compose.yaml), save profile, assign to IGEL OS device, and select Save and apply now
Create a Container Registry to Store and Distribute Container Images
- Create container for OCI Registry:
oci-registry-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | cat << "EOF" > oci-registry-compose.yaml
services:
registry:
image: docker.io/library/registry:2
container_name: oci-registry
ports:
- "5000:5000"
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry
REGISTRY_STORAGE_DELETE_ENABLED: "true"
volumes:
- "/services_rw/imc/container_data/volumes/registry:/var/lib/registry:rw"
entrypoint:
- /bin/sh
- -c
- |
echo "Running registry garbage collection..."
/bin/registry garbage-collect --delete-untagged /etc/docker/registry/config.yml
echo "Starting OCI registry..."
exec /bin/registry serve /etc/docker/registry/config.yml
EOF
|
yaml: oci-registry-compose.yaml
container: oci-registry
SERVER=10.0.0.12
curl http://${SERVER}:5000/v2/_catalog
SERVER=10.0.0.12
docker tag igel-ums:bookworm ${SERVER}:5000/igel-ums:bookworm
docker push ${SERVER}:5000/igel-ums:bookworm
NOTE: To use the docker tag/push to this container registry update the docker file /etc/docker/daemon.json with the following for this example of container running on IGEL OS device on the 10.0.0.0/24 network.
| "insecure-registries": ["10.0.0.0/24"]
|
- Updated
run-pull-docker-ums.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101 | cat << "EOF" > run-pull-docker-ums.sh
#!/bin/bash
set -euo pipefail
#
# For X11:
# xhost +local:docker
#
xhost +local:docker
IMAGE="igel-ums:bookworm"
EXPORT_DIR="$(pwd)/container-export"
# OCI Registry container IP
OCI_REG_SRV="10.0.0.12"
mkdir -p "$EXPORT_DIR"
/services/docker/usr/bin/docker system prune -f
if /services/docker/usr/bin/docker image inspect "$IMAGE" >/dev/null 2>&1; then
echo "Image $IMAGE exists."
else
# echo "Image $IMAGE does not exist. Building it now."
# /services/docker/usr/bin/docker build --network host -t "$IMAGE" .
echo "Image $IMAGE does not exist. Pulling it now."
IMAGE="${OIC_REG_SRV}:5000/igel-ums:bookworm"
EXPORT_DIR="$(pwd)/container-export"
mkdir -p "$EXPORT_DIR"
/services/docker/usr/bin/docker system prune -f
echo "Pulling latest image from private registry..."
/services/docker/usr/bin/docker pull "$IMAGE"
fi
/services/docker/usr/bin/docker run --network host --rm -it \
--user root \
--security-opt seccomp=unconfined \
-e DISPLAY="$DISPLAY" \
-e HOST_UID="$(id -u)" \
-e HOST_GID="$(id -g)" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e PULSE_SERVER=unix:/run/user/777/pulse/native \
-e PULSE_COOKIE=/root/.config/pulse/cookie \
-v /run/user/777/pulse:/run/user/777/pulse \
-v /userhome/config/pulse/cookie:/root/.config/pulse/cookie:ro \
-v "$EXPORT_DIR:/export" \
--device=/dev/dri \
--group-add video \
--group-add audio \
--shm-size=2g \
--entrypoint /bin/bash \
"$IMAGE" \
-c '
set +e
echo "Restoring exported files..."
if [ "$(find /export -mindepth 1 -print -quit 2>/dev/null)" ]; then
cp -a /export/. /home/appuser/
chown -R appuser:appuser /home/appuser
echo "Restore complete."
else
echo "No exported files found."
fi
# Run the UMS Remote Manager as the non-root application user.
runuser -u appuser -- env \
HOME=/home/appuser \
DISPLAY="$DISPLAY" \
PULSE_SERVER="$PULSE_SERVER" \
/opt/IGEL/RemoteManager/RemoteManager.sh
RC=$?
echo "Copying generated files to /export..."
if [ -f /home/appuser/rmconsole.truststore ]; then
cp -a /home/appuser/rmconsole.truststore /export/
else
echo "Warning: /home/appuser/rmconsole.truststore was not found."
fi
#if [ -d /home/appuser/.java ]; then
#rm -rf /export/.java
#cp -a /home/appuser/.java /export/
#else
#echo "Warning: /home/appuser/.java was not found."
#fi
cp -a /home/appuser/.* /export/
# Make the copied files belong to the user who started the container.
chown -R "$HOST_UID:$HOST_GID" /export
echo "Export complete: /export"
exit "$RC"
'
echo "Files exported to: $EXPORT_DIR"
EOF
chmod a+x run-pull-docker-ums.sh
|
Remove Images from Container Registry
- Create remove images from container registry script:
oci-registry-delete-images.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390 | cat << "EOF" > oci-registry-delete-images.sh
#!/usr/bin/env bash
#set -x
#trap read debug
set -x
set -u
REGISTRY="${REGISTRY:-http://10.0.0.12:5000}"
ACCEPT_HEADER='application/vnd.oci.image.index.v1+json, application/vnd.oci.image.manifest.v1+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.docker.distribution.manifest.v2+json'
###############################################################################
# Dialog helpers
###############################################################################
error()
{
zenity --error \
--title="OCI Registry" \
--text="$1"
}
info()
{
zenity --info \
--title="OCI Registry" \
--text="$1"
}
###############################################################################
# Dependency checks
###############################################################################
check_dependencies()
{
local missing=()
for cmd in curl jq zenity; do
if ! command -v "$cmd" >/dev/null 2>&1; then
missing+=("$cmd")
fi
done
if (( ${#missing[@]} > 0 )); then
printf 'Missing required commands: %s\n' "${missing[*]}" >&2
exit 1
fi
}
###############################################################################
# Registry connectivity
###############################################################################
registry_check()
{
if ! curl -fsS "${REGISTRY}/v2/" >/dev/null; then
error "Cannot connect to registry:\n\n${REGISTRY}"
exit 1
fi
}
###############################################################################
# Registry query functions
###############################################################################
get_repositories()
{
curl -fsS "${REGISTRY}/v2/_catalog" |
jq -r '.repositories[]?'
}
get_tags()
{
local repo="$1"
curl -fsS "${REGISTRY}/v2/${repo}/tags/list" |
jq -r '.tags[]?'
}
get_digest()
{
local repo="$1"
local tag="$2"
curl -fsSI \
-H "Accept: ${ACCEPT_HEADER}" \
"${REGISTRY}/v2/${repo}/manifests/${tag}" |
awk -F': ' '
tolower($1) == "docker-content-digest" {
gsub("\r", "", $2)
print $2
exit
}
'
}
###############################################################################
# Delete manifest
###############################################################################
delete_manifest()
{
local repo="$1"
local digest="$2"
local response_file
local status
response_file=$(mktemp)
status=$(
curl -sS \
-o "$response_file" \
-w '%{http_code}' \
-X DELETE \
"${REGISTRY}/v2/${repo}/manifests/${digest}"
)
if [[ "$status" == "202" ]]; then
rm -f "$response_file"
return 0
fi
{
echo "DELETE failed for ${repo}@${digest}"
echo "HTTP status: ${status}"
cat "$response_file"
} >&2
rm -f "$response_file"
return 1
}
###############################################################################
# Main
###############################################################################
check_dependencies
registry_check
rows=()
###############################################################################
# Discover repositories
###############################################################################
mapfile -t repositories < <(get_repositories)
if (( ${#repositories[@]} == 0 )); then
info "No repositories were found in:\n\n${REGISTRY}"
exit 0
fi
###############################################################################
# Discover repository tags
###############################################################################
for repo in "${repositories[@]}"; do
mapfile -t tags < <(get_tags "$repo")
for tag in "${tags[@]}"; do
[[ -z "$tag" ]] && continue
digest=$(get_digest "$repo" "$tag")
if [[ -z "$digest" ]]; then
digest="UNKNOWN"
fi
rows+=(
FALSE
"$repo"
"$tag"
"$digest"
)
done
done
if (( ${#rows[@]} == 0 )); then
info "No tagged images were found in:\n\n${REGISTRY}"
exit 0
fi
###############################################################################
# Zenity image selection
###############################################################################
selection=$(
zenity --list \
--title="OCI Registry Cleanup" \
--text="Select images/tags to delete from:\n${REGISTRY}" \
--width=1100 \
--height=600 \
--checklist \
--separator="|" \
--print-column=2,3 \
--column="Delete" \
--column="Repository" \
--column="Tag" \
--column="Digest" \
"${rows[@]}"
)
rc=$?
if [[ $rc -ne 0 || -z "$selection" ]]; then
exit 0
fi
###############################################################################
# Parse Zenity selection
#
# Example:
#
# igel-ums|bookworm
#
# Multiple selections:
#
# igel-ums|bookworm|other-repo|latest
###############################################################################
declare -a delete_repos=()
declare -a delete_tags=()
IFS='|' read -r -a selected_fields <<< "$selection"
for ((i=0; i<${#selected_fields[@]}; i+=2)); do
repo="${selected_fields[$i]}"
tag="${selected_fields[$((i + 1))]:-}"
[[ -z "$repo" || -z "$tag" ]] && continue
delete_repos+=("$repo")
delete_tags+=("$tag")
done
if (( ${#delete_repos[@]} == 0 )); then
error "No valid repository/tag selections were returned."
exit 1
fi
###############################################################################
# Build confirmation message
###############################################################################
confirm_text="The following registry items will be deleted:\n\n"
for i in "${!delete_repos[@]}"; do
confirm_text+="${delete_repos[$i]}:${delete_tags[$i]}\n"
done
confirm_text+="\nRegistry:\n${REGISTRY}\n\nContinue?"
zenity --question \
--title="Confirm OCI Registry Deletion" \
--width=550 \
--text="$confirm_text"
if [[ $? -ne 0 ]]; then
exit 0
fi
###############################################################################
# Delete selected manifests
###############################################################################
declare -a success=()
declare -a failed=()
declare -A deleted_digests=()
for i in "${!delete_repos[@]}"; do
repo="${delete_repos[$i]}"
tag="${delete_tags[$i]}"
digest=$(get_digest "$repo" "$tag")
if [[ -z "$digest" ]]; then
failed+=("${repo}:${tag} - could not determine digest")
continue
fi
key="${repo}@${digest}"
# Avoid deleting the same digest twice if multiple tags reference it.
if [[ -n "${deleted_digests[$key]:-}" ]]; then
success+=("${repo}:${tag} - shared digest already deleted")
continue
fi
if delete_manifest "$repo" "$digest"; then
deleted_digests["$key"]=1
# Verify that the tag no longer resolves.
verify_status=$(
curl -sS \
-o /dev/null \
-w '%{http_code}' \
-H "Accept: ${ACCEPT_HEADER}" \
"${REGISTRY}/v2/${repo}/manifests/${tag}"
)
if [[ "$verify_status" == "404" ]]; then
success+=("${repo}:${tag}")
else
failed+=(
"${repo}:${tag} - DELETE returned 202 but tag still returns HTTP ${verify_status}"
)
fi
else
failed+=("${repo}:${tag}")
fi
done
###############################################################################
# Refresh registry state
###############################################################################
remaining_text=""
for repo in "${repositories[@]}"; do
mapfile -t remaining_tags < <(get_tags "$repo")
if (( ${#remaining_tags[@]} > 0 )); then
remaining_text+="${repo}:\n"
for tag in "${remaining_tags[@]}"; do
remaining_text+=" ${tag}\n"
done
fi
done
###############################################################################
# Build results
###############################################################################
result=""
if (( ${#success[@]} > 0 )); then
result+="Deleted:\n"
for item in "${success[@]}"; do
result+=" ${item}\n"
done
fi
if (( ${#failed[@]} > 0 )); then
result+="\nFailed:\n"
for item in "${failed[@]}"; do
result+=" ${item}\n"
done
fi
if [[ -n "$remaining_text" ]]; then
result+="\nRemaining tagged images:\n"
result+="$remaining_text"
else
result+="\nNo tagged images remain in the registry."
fi
###############################################################################
# Display result
###############################################################################
if (( ${#failed[@]} == 0 )); then
zenity --info \
--title="OCI Registry Cleanup" \
--width=600 \
--text="$result"
else
zenity --warning \
--title="OCI Registry Cleanup" \
--width=600 \
--text="$result"
fi
EOF
chmod a+x oci-registry-delete-images.sh
|