Launch alamalinux container with a local ip

What I would like to do is start an almalinux base and be able to ssh into the container .
I am looking for a tutorial or a composer script to help.

I am able to start the container using :
docker run -d -P --name a9ssh2 almalinux

But I am not able to ssh into the container.

Please throw me a bone.

I’m only been using docker for about a year. I’ve launched the ctfd container on port 8000.