首页
下载
文档
问答社区
视频
捐赠
源代码
AI 助理
赞助商
CRMEB
Apipost
腾讯云
微擎
禅道
51Talk
商业产品
Swoole AI 智能文档翻译器
Swoole-Compiler PHP 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
官方的docker镜像怎么用,启动报错
### 问题描述 docker run --name=swoole-dev -d phpswoole/swoole phpswoole/swoole:lastest-dev 启动报错:/entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory 假如我有一个php服务端文件,怎么用这个启动的容器运行这个php文件 ### Swoole版本,PHP版本,以及操作系统版本信息 cat /etc/centos-release CentOS Linux release 7.5.1804 (Core) docker run --rm phpswoole/swoole "php --ri swoole" swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.5.2 Built => May 29 2020 10:54:49 coroutine => enabled epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled spinlock => enabled rwlock => enabled sockets => enabled openssl => OpenSSL 1.1.1d 10 Sep 2019 http2 => enabled zlib => 1.2.11 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled mysqlnd => enabled async_redis => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 8388608 => 8388608 ### 相关代码 ```php [root@VM_0_2_centos var]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest 2622e6cca7eb 3 days ago 132MB phpswoole/swoole latest-dev 4418f1103808 2 weeks ago 664MB phpswoole/swoole latest a03f086b845d 2 weeks ago 469MB hello-world latest bf756fb1ae65 5 months ago 13.3kB [root@VM_0_2_centos var]# docker container ls -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b3e301e9b61e phpswoole/swoole "/entrypoint.sh phps…" 12 minutes ago Exited (127) 11 minutes ago swoole-dev [root@VM_0_2_centos var]# docker start swoole-dev swoole-dev [root@VM_0_2_centos var]# docker logs swoole-dev /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory [root@VM_0_2_centos var]# ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于4年前 · 9 次浏览 · 来自
提问
hurry241
### 问题描述 docker run --name=swoole-dev -d phpswoole/swoole phpswoole/swoole:lastest-dev 启动报错:/entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory 假如我有一个php服务端文件,怎么用这个启动的容器运行这个php文件 ### Swoole版本,PHP版本,以及操作系统版本信息 cat /etc/centos-release CentOS Linux release 7.5.1804 (Core) docker run --rm phpswoole/swoole "php --ri swoole" swoole Swoole => enabled Author => Swoole Team <team@swoole.com> Version => 4.5.2 Built => May 29 2020 10:54:49 coroutine => enabled epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled spinlock => enabled rwlock => enabled sockets => enabled openssl => OpenSSL 1.1.1d 10 Sep 2019 http2 => enabled zlib => 1.2.11 mutex_timedlock => enabled pthread_barrier => enabled futex => enabled mysqlnd => enabled async_redis => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.enable_library => On => On swoole.enable_preemptive_scheduler => Off => Off swoole.display_errors => On => On swoole.use_shortname => On => On swoole.unixsock_buffer_size => 8388608 => 8388608 ### 相关代码 ```php [root@VM_0_2_centos var]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE nginx latest 2622e6cca7eb 3 days ago 132MB phpswoole/swoole latest-dev 4418f1103808 2 weeks ago 664MB phpswoole/swoole latest a03f086b845d 2 weeks ago 469MB hello-world latest bf756fb1ae65 5 months ago 13.3kB [root@VM_0_2_centos var]# docker container ls -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES b3e301e9b61e phpswoole/swoole "/entrypoint.sh phps…" 12 minutes ago Exited (127) 11 minutes ago swoole-dev [root@VM_0_2_centos var]# docker start swoole-dev swoole-dev [root@VM_0_2_centos var]# docker logs swoole-dev /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory /entrypoint.sh: line 48: /var/www/phpswoole/swoole:lastest-dev: No such file or directory [root@VM_0_2_centos var]# ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
分享
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
评论
还没有评论!
微信公众号
热门内容
暂无回复的问答
- CodeGalaxy K3s 轻量集群节点之间如何实现负载均衡
- 关于openssl CURL WARNING swSSL_connect: SSL_connect(fd=69) failed. Error: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small[1|394]
- 多个模型如何进行事务异常回退?
- websocket开启wss报错
- 协程tcp服务器如何使用多进程?recv()方法接收信息,打印出来的pid一直是同一个。没用使用到多进程啊。