安装

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/

使用

docker run --rm -p 9501:9501 --name swoole_php8.2 -v D:\study\swoole\dockerwww:/var/www phpswoole/swoole:php8.2-alpine
04-24 09:26