Some notes docker use

 

 

The basic operation of the container // 
the sudo
Docker Start ( ID ) the sudo Docker STOP ( ID ) the sudo Docker RM ( ID )

 

// enter the vessel 
the sudo
Docker the attach (name) the sudo Docker Exec Expediting IT ( ID ) / bin / the bash

 

the sudo Docker CP ~ / outside a document (name): / var / www / html / ( a container file path)

 

// map database to an external port of 
the sudo Docker RUN --name sqlname -e -d -P = mypassword MariaDB MYSQL_ROOT_PASSWORD

 

php -a // terminal 
php -m // module
docker-php-ext-install (module)

 

Guess you like

Origin www.cnblogs.com/AardWolf/p/11939321.html