[Beginner] Access container by ssh

Hi guys, I am new docker guy. I took a look on N docs but they are not clear.
How can I access container from my LAN Ex:
container IP:
docker IP :
host IP:
I want ssh from to

That depends, if you are using a linux OS use

ssh -t user@ docker exec -ti nameofcontainer /bin/bash

You can access the container with the command:

docker exec -ti container-name /bin/bash

If a ssh daemon is running inside the container it would be possible if you publish port 22 in any way.