mysql simple example
1, the mirror mysql
Execution docker search mysql
pulling specified version command docker pull mysql: 5.6
running docker run ...
after docker ps can view the container
into the docker inside mysql
2, mysql service on the external connection docker win10
Use the ifconfig command to query the Linux ip address
to insert additional records in the external manual, docker in mysql service also simultaneously modify, for example, and then insert the oracle, execute the command select * from t_book;
3, data backup
/Zzyyuse/all-databases.sql files mysql mysqldump command execution container mounted in the docker, it is exported to the database according to the host user name, password
performed vim all-databases.sql
Redis simple example
1, using a mirror
Execution docker run ...
write redis profile
vim redis.conf can see, q quit
2, connected redis-cli:
3, test the persistence file is generated:
vim can see, q quit