How url on the host to reach a webservice in container?
I have a webserver running in a podman container. I run the container by:
Unreachable service in a podman container running as root
I have a webui in podman container that i want to access through my browser, browser and podman runs on the same machine. I use the following command podman run -p 7860:7860 --gpus all 8b8b975cb65b
to run the container. When i use the command as non-root user, the service is accessible from browser, but it’s not when i run with sudo as root.
Podman container can’t access a service on host via host-gateway
I run my container with the flag --add-host=host.containers.internal:host-gateway
. Application inside the container can’t reach a service on 127.0.0.1:11434 on my main host, but the app can reach it if i add the flag --network=host
.
podman – Failed to stop any containers by using “sudo podman stop”
I have encountered a problem with podman. I have successfully ran couple containers within it. But when I issue “sudo podman stop/restart xxx”, I always get below error (used pgadmin4 as an example), then the container status stuck at “Stopping”. To recover from it, I have to restart the computer.
Convert Docker Image from Directory to Archive
When I save images using podman save
, there’s an option to specify the format. Two available formats are docker-archive
and docker-dir
. However, podman load
seems to always expect an archive. I’ve been given an image in docker-dir
format and I’m having a surprisingly hard time converting it to docker-archive
to load into podman
. I can see how to do it manually except that there’s one hash that I don’t know how to compute.