How to link a container Podman

Under docker I can link a container using the --link, is there an alternative for podman?

docker run -d -p 8080:8080 --link mysql-ld logicaldoc/logicaldoc-ce

This is for linking together the networks of the two containers?

I think the simplest is to run the two containers in the same pod. Something like:

$ podman pod create -n logicaldoc -p 8080:8080
$ podman run <other flags> --pod logicaldoc mysql:8.0
$ podman run <other flags> --pod logicaldoc logicaldoc/logicaldoc-ce

as mentioned in the example here:

Yup this is the way to go thanks for your help, have a great day.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.