報錯信息
Could not open input file: /var/www/swoft/bin/swoft
解決方法
docker run -it -d --entrypoint=""
-p 18306:18306
-v /D:/docker/swoft:/var/www
--name swoft swoft/swoft bash
1、
--entrypoint=""
本地強制覆蓋容器目錄,如果本地目錄爲空的話,需要重新安裝swoft 項目
2、注:必須要加-it
,bash
不然會報這個錯
docker.exe: Error response from daemon: No command specified.