Pull an image.
podman pull alpineTag it for local registry.
podman tag alpine localhost:5000/alpinePush it to local registry.
podman push localhost:5000/alpineRemove upstream image.
podman image rm alpineRun image from local registry.
podman run -it localhost:5000/alpine /bin/shPull alpine arm64 image and save as .tar to USB drive.
skopeo copy --override-arch arm64 docker://alpine:latest docker-archive:/media/$(whoami)/USB\ DISK/alpine-arm64.tarCheck what was saved.
skopeo inspect docker-archive:/media/$(whoami)/USB\ DISK/alpine-arm64.tar Should be something like:
{
"Digest": "sha256:058c92d86112aa6f641b01ed238a07a3885b8c0815de3e423e5c5f789c398b45",
"RepoTags": [],
"Created": "2025-02-14T03:28:36Z",
"DockerVersion": "",
"Labels": null,
"Architecture": "arm64",
"Os": "linux",
"Layers": [
"sha256:a16e98724c05975ee8c40d8fe389c3481373d34ab20a1cf52ea2accc43f71f4c"
],
"LayersData": [
{
"MIMEType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"Digest": "sha256:a16e98724c05975ee8c40d8fe389c3481373d34ab20a1cf52ea2accc43f71f4c",
"Size": 8461312,
"Annotations": null
}
],
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
]
}Load .tar from USB drive into targets local registry.
skopeo copy docker-archive:/mnt/usb/alpine-arm64.tar docker://localhost:5000/alpine:latestVerify image is local registry.
curl -X GET https://localhost:5000/v2/_catalogShould output something like:
{"repositories":["alpine"]}And:
curl -X GET https://localhost:5000/v2/alpine/tags/listShould output something like:
{"name":"alpine","tags":["latest"]}Now run alpine container from local registry.
podman run -it localhost:5000/alpine /bin/shsudo podman run -d --name nebula --network host --cap-add NET_ADMIN --device=/dev/net/tun --volume /home/$(whoami)/.nebula/lighthouse/keys:/etc/nebula --volume /home/$(whoami)/.nebula/lighthouse/config:/config docker.io/nebulaoss/nebula:latest