docker踩坑记
第一次使用的时候,出现了不少问题,这里记录下。
容器和镜像的理解
容器 = 镜像 + 一些可读层
上传自己的镜像被拒绝denied: requested access to the resource is denied
需要保证tag的格式 用户名/容器名
php—apache部署报错
Docker容器报错处理:AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.17.0.5. Set the ‘ServerName’ directive globally to suppress this message
查看apache的ip地址
$ docker inspect CONTAINER_ID | grep IPAddress
$ cat /etc/apache2/sites-enable/000-defalut.conf //查看配置文件
本文来自博客园,作者:kzd的前沿思考,转载请注明原文链接:https://www.cnblogs.com/Fram3/p/15763966.html

浙公网安备 33010602011771号