両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
linux:podman:openlitespeed [2024/03/11 18:02] – [コンテナ実行] ともやん | linux:podman:openlitespeed [2024/03/12 13:05] (現在) – [OpenLiteSpeed (Podman)] ともやん |
---|
公式: [[git>litespeedtech|litespeedtech (LiteSpeed Tech)]]\\ | 公式: [[git>litespeedtech|litespeedtech (LiteSpeed Tech)]]\\ |
[[https://docs.litespeedtech.com/cloud/docker/openlitespeed/|OLS | Docker | Cloud | LiteSpeed Documentation]] [[gtr>https://docs.litespeedtech.com/cloud/docker/openlitespeed/|翻訳]]\\ | [[https://docs.litespeedtech.com/cloud/docker/openlitespeed/|OLS | Docker | Cloud | LiteSpeed Documentation]] [[gtr>https://docs.litespeedtech.com/cloud/docker/openlitespeed/|翻訳]]\\ |
| ソースコード: [[git>litespeedtech/ols-dockerfiles|litespeedtech/ols-dockerfiles]] [[gtr>https://github.com/litespeedtech/ols-dockerfiles|翻訳]]\\ |
| |
===== インストール ===== | ===== インストール ===== |
| |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre><span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">podman</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">-ti</span> <span style="color:#A347BA">-d</span> litespeedtech/openlitespeed:latest | <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> r<font color="#999999">un </font><font color="#A347BA">--name</font><font color="#999999"> openlitespeed </font><font color="#A347BA">-p</font><font color="#999999"> 7080:7080 </font><font color="#A347BA">-p</font><font color="#999999"> 80:80 </font><font color="#A347BA">-p</font><font color="#999999"> 443:443 </font><font color="#A347BA">--rm</font><font color="#999999"> </font><font color="#A347BA">-ti</font><font color="#999999"> </font><font color="#A347BA">-d</font><font color="#999999"> litespeedtech/openlitespeed:1.7.19-lsphp81</font> |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_result><html><pre> | <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. | Error: creating container storage: the container name "openlitespeed" is already in use by 37a43768b7bb68b36d51429053157352a56565d5792c7634ce0b351d1abbfbc8. You have to remove that container to be able to reuse that name: that name is already in use, or use --replace to instruct Podman to do so. |
See 'docker run --help'. | |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <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> | <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> ps |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
be6f9c3af4d3 litespeedtech/openlitespeed:latest "/entrypoint.sh" 40 minutes ago Exited (130) 5 minutes ago openlitespeed | 37a43768b7bb docker.io/litespeedtech/openlitespeed:1.7.19-lsphp81 17 hours ago Up 17 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:7080->7080/tcp openlitespeed |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
| |
終了している場合は削除する。\\ | 既存のコンテナを終了する🤔\\ |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">docker</span> rm openlitespeed | <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> kill openlitespeed |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
openlitespeed | openlitespeed |
| </pre></html></WRAP> |
| </WRAP> |
| <html><code>-s, --signal</code></html> を指定しない場合は <html><code>SIGKILL</code></html> がシグナルが送信される🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> kill openlitespeed <font color="#A347BA">-s</font> SIGKILL |
| </pre></html></WRAP> |
| </WRAP> |
| |
| または、既存のコンテナが存在する場合は置き換える🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> run <font color="#A347BA">--name</font> openlitespeed <font color="#A347BA">--replace</font> <font color="#A347BA">-p</font> 7080:7080 <font color="#A347BA">-p</font> 80:80 <font color="#A347BA">-p</font> 443:443 <font color="#A347BA">--rm</font> <font color="#A347BA">-ti</font> <font color="#A347BA">-d</font> litespeedtech/openlitespeed:1.7.19-lsphp81 |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <font color="#A2734C">WARN</font>[0010] StopSignal SIGTERM failed to stop container openlitespeed in 10 seconds, resorting to SIGKILL |
| 24f46d22d7aa539f05fb447fe8bbfe8069291ecfdeac5be455f0587d2fa2b556 |
| </pre></html></WRAP> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> ps |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
| 24f46d22d7aa docker.io/litespeedtech/openlitespeed:1.7.19-lsphp81 6 seconds ago Up 6 seconds 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:7080->7080/tcp openlitespeed |
</pre></html></WRAP> | </pre></html></WRAP> |
</WRAP> | </WRAP> |
</WRAP> | </WRAP> |
| |
| ===== 技術情報 ===== |
| コンテナは Ubuntu 22.04.3 LTS (Jammy Jellyfish) 🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> run <font color="#A347BA">--name</font> openlitespeed <font color="#A347BA">--replace</font> <font color="#A347BA">-p</font> 7080:7080 <font color="#A347BA">-p</font> 80:80 <font color="#A347BA">-p</font> 443:443 <font color="#A347BA">--rm</font> <font color="#A347BA">-ti</font> <font color="#A347BA">-d</font> litespeedtech/openlitespeed:1.7.19-lsphp81 |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">podman</font> exec <font color="#A347BA">-ti</font> openlitespeed bash |
| root@6ce1666bdb9f:/var/www/vhosts# cat /etc/lsb-release |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| DISTRIB_ID=Ubuntu |
| DISTRIB_RELEASE=22.04 |
| DISTRIB_CODENAME=jammy |
| DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS" |
| </pre></html></WRAP> |
| </WRAP> |
| |