Docker is an open source application container engine, based on the Go language and open source in compliance with the Apache2.0 protocol.

Docker allows developers to package their applications and dependencies into a lightweight, portable container, and then publish it to any popular Linux machine, which can also be virtualized.

Docker exec command syntax

docker exec: Execute commands in a running container

docker exec [OPTIONS] CONTAINER COMMAND [ARG...]

Docker exec command example

Execute the /root/php.cn.sh script in the container in interactive mode in the container mynginx

php.cn@php.cn:~$ docker exec -it mynginx /bin/sh /root/php.cn.sh
//m.sbmmt.com/