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
- Run WordPress locally using Docker!
- Setup Redmine on Docker Container
- Debug Mode: Django Docker Pycharm
- The Power of exec() in Mongoose: Unlocking Better Query Execution
- Tether Hires PayPal and Chainalysis Exec Jesse Spiro to Improve Relations With Regulators
- Create a new Laravel project in seconds using Docker!