Docker exec command


  Translation results:

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 commandsyntax

docker exec: Execute commands in a running container

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

Docker exec commandexample

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
http://www.php.cn/

Popular Recommendations

Home

Videos

Q&A