下面是我的配置:
我正在评估此工具供个人使用。但是问题是主机上的IIS /系统已经在使用我的某些标准端口。 我能够获得猕猴桃码头工人形象,也克隆了GIT仓库。
由于标准端口已在使用中,因此如下所示更改了docker-compose.yml文件:
ports:
- 90:8080
- 1443:8443
现在,docker容器kiwi_web已启动并在1443端口上成功运行。但是,当我访问该页面时,它会显示内部服务器错误。我猜这个错误是因为有更多的命令要执行?
根据文档,现在我正在尝试执行下一条命令,这会导致错误。
$ winpty docker exec -it kiwi_web /Kiwi/manage.py migrate
OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec: \"C:/Program Files/Git/Kiwi/manage.py\": stat C:/Program Files/Git/Kiwi/manag
e.py: no such file or directory": unknown
我该怎么办?是的,我正在从克隆的存储库目录中执行此命令。
在Windows计算机上进行此活动是否有更好的说明? 谢谢
更新: 我设法找到OIC问题。下面是更改后的命令:
$ winpty docker exec -it kiwi_web //bin//sh
sh-4.2$ ls
Kiwi bin dev home lib media opt root sbin sys usr venv
anaconda-post.log boot etc httpd-foreground lib64 mnt proc run srv tmp var
sh-4.2$ cd Kiwi/
sh-4.2$ ls
kiwitcms-6.5.3.tar.gz manage.py node_modules package.json requirements ssl static uploads
sh-4.2$ manage.py migrate
sh: manage.py: command not found
sh-4.2$ ./manage.py migrate
Operations to perform:
Apply all migrations: admin, attachments, auth, contenttypes, core, django_comments, kiwi_auth, linkreference, manag
ement, sessions, sites, testcases, testplans, testruns
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying admin.0003_logentry_add_action_flag_choices... OK
Applying attachments.0001_initial... OK
Applying attachments.0002_auto_20180104_1247... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying auth.0009_alter_user_last_name_max_length... OK
Applying sites.0001_initial... OK
Applying core.0001_squashed... OK
Applying django_comments.0001_initial... OK
Applying django_comments.0002_update_user_email_field_length... OK
Applying django_comments.0003_add_submit_date_index... OK
Applying kiwi_auth.0001_initial... OK
Applying management.0003_squashed... OK
Applying testplans.0005_squashed... OK
Applying testcases.0001_initial... OK
Applying testruns.0004_squashed... OK
Applying linkreference.0001_squashed... OK
Applying management.0004_remove_sortkey_description... OK
Applying management.0005_order_by_name... OK
Applying sessions.0001_initial... OK
Applying sites.0002_alter_domain_unique... OK
Applying testcases.0004_squashed... OK
Applying testcases.0005_remove_unused_fields... OK
Applying testcases.0006_merge_text_field_into_testcase_model... OK
Applying testcases.0007_convert_is_automated_to_boolean... OK
Applying testcases.0008_notifications_default_true... OK
Applying testplans.0006_remove_testplan_owner... OK
Applying testplans.0007_notifications_default_true... OK
Applying testruns.0005_remove_unused_fields... OK
sh-4.2$
好像我设法解决了这个问题。
答案 0 :(得分:1)
看起来像这样的https://github.com/kiwitcms/Kiwi/issues/231,我们对此无能为力。这是来自docker安装的一个神秘错误,因此最好的选择是Google搜索。尝试挂载文件而不是目录时,我们已经看到这种错误,但是可能是其他原因导致的。