簡體   English   中英

如何通過 jenkins 作業在 docker 中創建 httpd 容器?

[英]How to create a httpd container in docker through jenkins job?

我需要通過 Jenkins 作業創建容器的幫助。

讓我知道要遵循的步驟:我已經在 Jenkins 中創建了 3 個作業,我想通過創建的作業創建httpd容器。

我應該安裝任何插件還是編寫任何腳本?

Assuling we are not talking about Jenkins in docker, or Jenkins agents in Docker, you need to create your http container manually first, without Jenkins.

這意味着:

  • 驗證您的 SSH 訪問遠程服務器
  • 檢查它是否安裝了 Docker
  • 執行 docker 命令以運行 http 容器,如Docker httpd中所述

Once that is working, you can replicate the process in a Jenkins Job, provided your remote server (the one with Docker, where you want to run your httpd container) is declared as agent to the main Jenkins controller.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM