部分翻译

镜像地址: https://hub.docker.com/_/composer/

Short Description

简介

Composer is a dependency manager written in and for PHP.

Composer 是为PHP写的一款依赖管理器.


日常记录

Q: found character '\t' that cannot start any token while scanning for the next

A: liunx上 vi 使用TAB键会使用制表符 [link]

Q: 根据官方PHP镜像制作成自己的镜像时出错

A: Dockerfile末尾不加 CMD ["php", "-a"] 也不用暴露端口

Q:docker SQLSTATE[HY000] [2002] No such file or directory

A: [link]

php -r "new PDO('mysql:host=docker-mysql;port=3306;charset=utf8', 'root', '123123');"
//host不是localhost也不是127.0.0.1是在docker-compose定义的服务名称

results matching ""

    No results matching ""