Docker windows 个问题下的 Kiwi TCMS
Kiwi TCMS under Docker windows issues
以下是我的配置:
- Docker 版本 18.09.2,内部版本 6247962
- 主持人OS:Win 10 Pro
我正在评估此工具以供个人使用。但问题是我的一些标准端口已经被主机上的 IIS/System 使用。我能够获取 kiwi docker 图像并克隆 GIT 存储库。
由于标准端口已经在使用中,我更改了 docker-compose.yml 文件,如下所示:
ports:
- 90:8080
- 1443:8443
现在 docker 容器 kiwi_web 已启动并且 运行 在 1443 端口上成功。但是当我访问该页面时它显示Internal Server Error。我猜这个错误是因为要执行更多的命令?
根据文档,现在我正在尝试执行下一个命令,这会导致错误。
$ 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 机器上执行此操作 activity?
更新:
我设法找到了 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$
看来我设法解决了问题。
看起来像这个 https://github.com/kiwitcms/Kiwi/issues/231,我们对此无能为力。这是来自您的 docker 安装的神秘错误,因此您最好的选择是 google 了解它。我们在尝试挂载文件而不是目录时看到过这种错误,但可能还有其他原因导致它。
以下是我的配置:
- Docker 版本 18.09.2,内部版本 6247962
- 主持人OS:Win 10 Pro
我正在评估此工具以供个人使用。但问题是我的一些标准端口已经被主机上的 IIS/System 使用。我能够获取 kiwi docker 图像并克隆 GIT 存储库。
由于标准端口已经在使用中,我更改了 docker-compose.yml 文件,如下所示:
ports:
- 90:8080
- 1443:8443
现在 docker 容器 kiwi_web 已启动并且 运行 在 1443 端口上成功。但是当我访问该页面时它显示Internal Server Error。我猜这个错误是因为要执行更多的命令?
根据文档,现在我正在尝试执行下一个命令,这会导致错误。
$ 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 机器上执行此操作 activity?
更新: 我设法找到了 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$
看来我设法解决了问题。
看起来像这个 https://github.com/kiwitcms/Kiwi/issues/231,我们对此无能为力。这是来自您的 docker 安装的神秘错误,因此您最好的选择是 google 了解它。我们在尝试挂载文件而不是目录时看到过这种错误,但可能还有其他原因导致它。