# bachang **Repository Path**: yixuan1/bachang ## Basic Information - **Project Name**: bachang - **Description**: 测试环境:Docker靶场搭建,有兴趣的可以试试 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-01-29 - **Last Updated**: 2021-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bachang ## 介绍 测试环境:Docker靶场搭建,有兴趣的可以试试 ## 相关LAMP环境推荐 docker pull thiagobarradas/lamp:php-5.4 docker pull thiagobarradas/lamp:php-5.5 docker pull thiagobarradas/lamp:php-5.6 docker pull thiagobarradas/lamp:php-7.0 docker pull thiagobarradas/lamp:php-7.1 docker pull thiagobarradas/lamp:php-7.2 docker pull thiagobarradas/lamp:php-7.3 ### [tutum](https://hub.docker.com/r/tutum/lamp)以及thiagobarradas环境须知 1. mysql账号:root,默认密码为空 2. 当账号为admin时,密码为随机生成,使用命令`docker logs 容器ID`可查看 示例: ``` => An empty or uninitialized MySQL volume is detected in /var/lib/mysql => Installing MySQL ... => Done! => Waiting for confirmation of MySQL service startup => Creating MySQL admin user with random password => Done! ======================================================================== You can now connect to this MySQL Server using: mysql -uadmin -pZrmUKVLBL8Pr -h -P Please remember to change the above password as soon as possible! MySQL user 'root' has no password but only allows local connections ======================================================================== ``` 3. 在编写Dockerfile时,可通过添加`ENV MYSQL_PASS=admin`达到目的 示例: ``` FROM thiagobarradas/lamp:php-7.3 ENV MYSQL_PASS=admin ```