@echo off for /F %%i in ('chdir') do ( set current_dir=%%i) docker run ^ -ti --rm --name "composer-template" ^ -v "%current_dir%":"/srv/www" ^ -v "%USERPROFILE%\.ssh":"/root/.ssh" ^ -p 8866:80 ^ --env-file=.env ^ hyperf/hyperf:8.0-alpine-v3.12-swoole /bin/ash