docker run command with port code example
Example 1: docker run -p port:port
docker run -p containerport:machineport
Example 2: docker run command on container
sudo docker exec -it <container name> <command>
docker run -p containerport:machineport
sudo docker exec -it <container name> <command>