安装
shell
复制代码
docker pull phpswoole/swoole:php8.2-alpine
docker run --rm phpswoole/swoole:php8.2-alpine php -m
docker run --rm phpswoole/swoole:php8.2-alpine php --ri swoole
docker run --rm phpswoole/swoole:php8.2-alpine composer --version
#换阿里composer源
docker run --rm phpswoole/swoole:php8.2-alpine composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
使用
shell
复制代码
docker run --rm -p 9501:9501 --name swoole_php8.2 -v D:\study\swoole\dockerwww:/var/www phpswoole/swoole:php8.2-alpine