-
Notifications
You must be signed in to change notification settings - Fork 239
Podman support
Guillaume Rose edited this page May 6, 2021
·
2 revisions
CodeReady Containers 1.26.0 brings Podman 2.2.1 to your machine. It works on Linux, macOS and Windows.
You can build, run and share containers now.
crc setup
crc start
eval $(crc podman-env)
-
podman version
(macOS/Windows) orpodman-remote version
(Linux)
-
It exposes the rootless podman socket of the virtual machine
-
It still require to have the full OpenShift cluster running
-
Bind mounts don't work.
-
Ports are not automatically exposed on the host.
- Workaround when using vsock network mode:
- Expose a port:
curl --unix-socket ~/.crc/crc-http.sock http:/unix/network/services/forwarder/expose -X POST -d '{"local":":8080","remote":"192.168.127.3:8080"}'
- Unexpose a port:
curl --unix-socket ~/.crc/crc-http.sock http:/unix/network/services/forwarder/unexpose -X POST -d '{"local":":8080"}'
- Expose a port:
- Workaround when using vsock network mode:
- Very often, the first run of
podman
fails. It will be fixed with Podman 3.0.