howto 。。。。mavean,java

在centos7上部署nodejs應(yīng)用 包含了git的安裝
java安裝方法的鏈接和maven的安裝方法
How To Set Up Jenkins for Continuous Development Integration on CentOS 7
https://www.digitalocean.com/community/tutorials/how-to-edit-the-sudoers-file-on-ubuntu-and-centos

jenkins執(zhí)行docker命令遇到權(quán)限問題時,可將jenkisn用戶加入docker組

sudo usermod -aG docker Jenkins

When running docker ps
and receiving:

An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.

The following environment properties need to be set:

set DOCKER_CERT_PATH=%USERPROFILE%.docker\machine\machines\default
set DOCKER_HOST=tcp://192.168.99.100:2376
set DOCKER_MACHINE_NAME=default
set DOCKER_TLS_VERIFY=1

export DOCKER_TLS_VERIFY="1"
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="${USERPROFILE}.docker\machine\machines\default"
export DOCKER_MACHINE_NAME="default"

This is assuming the %USERPROFILE%.docker\machine\machines\default
is default path where the cert.pem
, key.pem
, ca-key.pem
, and ca.pem
docker files are; the virtual machine name's (created by docker-machine create
) is default
and Virtual Box DHCP Server's lower bound (found under VirtualBox->File->Preferences->Network->Host-only Networks->hover mouse on VirtualBox Host-Only Ethernet Adapter) is 192.168.99.100 and no other VM is running in VirtualBox.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容