両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:docker:openlitespeed [2024/02/01 17:10] – [インストール] ともやん | linux:docker:openlitespeed [2024/02/01 18:09] (現在) – [コンテナ実行] ともやん |
---|
===== インストール ===== | ===== インストール ===== |
[[linux:docker|Docker]] をインストールする。\\ | [[linux:docker|Docker]] をインストールする。\\ |
| |
| ===== イメージのダウンロード ===== |
| 公式: [[https://docs.litespeedtech.com/cloud/docker/openlitespeed/#download-an-image|Download an image - OLS | Docker | Cloud | LiteSpeed Documentation]]\\ |
| |
<WRAP color_term> | <WRAP color_term> |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
| |
| ===== コンテナ実行 ===== |
| <WRAP color_term> |
| <WRAP color_command><html><pre><span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">docker</span> run <span style="color:#A347BA">--name</span> openlitespeed <span style="color:#A347BA">-p</span> 7080:7080 <span style="color:#A347BA">-p</span> 80:80 <span style="color:#A347BA">-p</span> 443:443 <span style="color:#A347BA">-it</span> litespeedtech/openlitespeed:latest |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| [OK] litespeed: pid=34. |
| </pre></html></WRAP> |
| </WRAP> |
| |
| <WRAP color_term> |
| <WRAP color_command><html><pre><span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">docker</span> run <span style="color:#A347BA">--name</span> openlitespeed <span style="color:#A347BA">-p</span> 7080:7080 <span style="color:#A347BA">-p</span> 80:80 <span style="color:#A347BA">-p</span> 443:443 <span style="color:#A347BA">--rm</span> <span style="color:#A347BA">-it</span> <span style="color:#A347BA">-d</span> litespeedtech/openlitespeed:latest |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| [OK] litespeed: pid=34. |
| </pre></html></WRAP> |
| </WRAP> |
| |
| <WRAP left round tip 90%> |
| |
| コンテナ名が競合している場合。 |
| <WRAP color_term> |
| <WRAP color_result><html><pre> |
| docker: Error response from daemon: Conflict. The container name "/openlitespeed" is already in use by container "be6f9c3af4d3e1e64da4c60c36fe5d26dd6b46e05c9f6f9a0b7aa173d664abb6". You have to remove (or rename) that container to be able to reuse that name. |
| See 'docker run --help'. |
| </pre></html></WRAP> |
| </WRAP> |
| |
| 実行中か確認する🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">docker</span> ps <span style="color:#A347BA">-a</span> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
| be6f9c3af4d3 litespeedtech/openlitespeed:latest "/entrypoint.sh" 40 minutes ago Exited (130) 5 minutes ago openlitespeed |
| </pre></html></WRAP> |
| </WRAP> |
| |
| 終了している場合は削除する。\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">docker</span> rm openlitespeed |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| openlitespeed |
| </pre></html></WRAP> |
| </WRAP> |
| |
| </WRAP> |
| |
| ===== OpenLiteSpeed WebAdmin Console ===== |
| 管理画面 [[https://localhost:7080/login.php]] にアクセスする。\\ |
| User Name: <html><code>admin</code></html>\\ |
| Password: <html><code>123456</code></html>(OpenLiteSpeed 初期パスワード)\\ |
| <WRAP group> |
| <WRAP zoomimg w400 x1_3 column> |
| {{:linux:openlitespeed_docker_001.png|OpenLiteSpeed 001}} |
| </WRAP> |
| <WRAP zoomimg w400 x1_3 column> |
| {{:linux:openlitespeed_docker_002.png|OpenLiteSpeed 001}} |
| </WRAP> |
| </WRAP> |
| |
| |