/DockerEnv

Primary LanguageDockerfile

DockerEnv

使用说明

# 初始化文件目录
mkdir.bat
# 导入镜像
save_img.bat
# 重构镜像
docker-compose up --build
# 启动
docker-compose up -d
# 关闭
docker-compose down
# 重启
docker-compose restart

进入容器

docker exec -it fpm /bin/bash

容器文件复制

docker cp fpm74:/usr/local/etc/php/php.ini-development D:\DockerEnv\php74-fpm\php.ini
docker cp fpm74:/usr/local/etc/php-fpm.conf D:\DockerEnv\php74-fpm\php-fpm.conf
docker cp fpm74:/usr/local/etc/php-fpm.d/www.conf D:\DockerEnv\php74-fpm\php-fpm.d\www.conf
docker cp fpm74:/etc/apt/sources.list D:\sources.list
# 源切换
docker cp fpm:/etc/apt/sources.list D:\DockerEnv\php74-fpm\sources.list

推送H

docker tag dockerenv_nginx:latest exewen/nginx:1.18.0
docker push exewen/nginx
docker tag dockerenv_php:latest exewen/php-fpm:7.0.13
docker push exewen/php-fpm

查看debian版本

cat /etc/issue
cat /etc/apt/sources.list