docker run a command code example
Example 1: docker run name
docker run --name <container name> -dp <local port>:<container port> <image>
Example 2: docker run command on container
sudo docker exec -it <container name> <command>
Example 3: dockerfile run app cmd
RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"