shouldn't the current directory be the default context for "podman build"?
by Robert P. J. Day
"man podman-build" suggests that the context argument is optional:
SYNOPSIS
podman build [options] [context]
podman image build [options] [context]
...
If no context directory is specified, then Podman will assume
the current working directory as the build context, which
should contain the Containerfile.
but if i have a directory with nothing but a Containerfile, i get:
$ podman build
Error: no context directory specified, and no containerfile specified
$
OTOH, specifying context of current directory:
$ podman build .
STEP 1: FROM alpine:latest
... etc etc ...
thoughts?
rday
1 week, 5 days
image platform (linux/amd64) does not match expected platform (linux/linux/arm64)
by Mehdi Haghgoo
Hi all,
I'm trying to run rabbitmq images on MacBook M1 and I see warnings like:
WARNING: image platform (linux/amd64) does not match the expected platform (linux/linux/arm64)
I run the command:
podman run --rm -p 8000:8080 --arch linux/arm64 ghcr.io/code-with-mehdi/rabbitmq:3-management
and it fails to boot with a lot of logs that I like below:
Mozilla Community Pastebin/QTExU80S (Plain Text)
Mozilla Community Pastebin/QTExU80S (Plain Text)
Is there a special flag I need to pass to fetch arm64 images?
I'm not sure the boot issue has anything to do with the image arch incompatibility, though. Some enlightening on this from someone who has experience and insight will be appreciated.
Best regards,
Mehdi
6 months, 1 week
Fly containers on the fly using podman YAML
by Mehdi Haghgoo
I have problem running docker-compose on a Rocky Linux server 9.4. Instead of Docker Compose, I want to use Podman. A service in my compose.yaml file creates a container on the fly using Containerfile and runs the service.
When running an container equivalent to this service, how can I create the container on the fly by first building using the Containerfile and then bringing up the service?
Is this possible?
Or should I first create a custom image, push it to repo and pull it before running the container?
6 months, 3 weeks