進階搜尋
搜尋結果
找到了 668 個結果
Dockerfile 的 /etc/hosts 如何設定
來源: Dockerfile 的 /etc/hosts 如何設定 – Tsung's Blog (longwin.com.tw) Dockerfile 的 /etc/hosts 如何設定 於 Dockerfile reference 文件裡面,沒有看到 /etc/hosts 該怎麼改,後來發現 /etc/hosts 修改的方式還蠻黑暗的~ 修改 /etc/hosts 的作法有兩種,先講比較正確的方法: Docker 增加 hosts 可以參考 Docker run 的文件:Docker run refer...
Docker如何固定IP設定的方法
Docker如何固定IP設定的方法 - IT閱讀 (itread01.com) 經常用Docker模擬專案在生產環境中的部署,往往需要同時開好幾臺Docker容器,而且有時安裝的軟體需要繫結Docker區域網中的其他容器,如 MongoDB 副本集部署的時候,就需要繫結其他容器的內網IP。 但是,Docker 每次重啟後,容器的IP地址會變化,查詢了資料,Docker是支援設定固定IP的。 Docker 預設網路 Docker安裝後,預設會建立下面三種網路型別: $ docker network...
Docker 監控相關
cadvisor 監控主機狀況 # 使用cadvisor $ docker run -d --restart=always -v /var/run:/var/run:rw -p 8080:8080 --name=cadvisor google/cadvisor:latest netdata 監控主機狀況 Install Netdata with Docker | Learn Netdata docker run -d --name=netdata \ -p 19999:19999 \ -v n...
Docker Swarm
相關指令 # 查詢swarm狀態 docker info # 未開啟 Swarm: inactive # 初始化swarm docker swarm init ########################## Swarm initialized: current node (4szs3vf8x9pb79me4cxfsb9m2) is now a manager. To add a worker to this swarm, run the following command: #加...
Docker架構
Docker Image Server nexus
sonatype/nexus3 - Docker Image | Docker Hub Use a docker volume. Since docker volumes are persistent, a volume can be created specifically for this purpose. This is the recommended approach. $ docker volume create --name nexus-data $ docker run -d -p 8...
TWCA 憑證放入 Nginx
憑證安裝 TWCA發回來憑證內容若要裝在nginx 上處理方式解開cert.zip後會有下列檔案 主機憑證:root.cer網域憑證:server.cer中繼憑證1:uca_1.cer中繼憑證2:uca_2.cer 檔案內容由上而下的順序uca_2在上面,再來是uca_1,透過下列指令産生檔案cp uca_2.cer uca.crt ; cat uca_1.cer >> uca.cer這個個設定可以適用於apache,apache的設定如下: SSLEngine On SSLCer...
【Git】相關連結
github 線上教學GitHub Learning Lab Git基本原理介绍 | Escape (escapelife.site) Learn Git Branching (gitee.io) Git基本原理介绍 | Escape (escapelife.site)
【Jenkins】相關連結
Jenkins入门 pipeline (官方文檔)https://www.jenkins.io/zh/doc/book/pipeline/syntax/https://www.jenkins.io/doc/book/pipeline/ 使用 Shared LibrariesGetting Started With Shared Libraries in JenkinsUsing Resource Files From a Jenkins Shared Library pipline語法What Is the D...
Docker 各系統安裝
各系統安裝連結 zabbixhttps://www.zabbix.com/documentation/4.4/zh/manual/installation/containershttps://github.com/zabbix/zabbix-docker/tree/6.4/Dockerfiles/web-nginx-pgsql elk https://github.com/deviantony/docker-elkhttps://github.com/deviantony/docker-elk sm...
Docker 安全性
為何在 Docker 中執行特權容器不是個好主意? – 資安趨勢部落格 (trendmicro.com.tw)
【Shell】linux 下source、sh、bash、./執行指令碼的區別
linux 下source、sh、bash、./執行指令碼的區別 - IT閱讀 (itread01.com) 1、source命令用法: source FileName 作用:在當前bash環境下讀取並執行FileName中的命令。該filename檔案可以無"執行許可權" 注:該命令通常用命令“.”來替代。 如:source .bash_profile . .bash_profile兩者等效。 source(或點)命令通常用於重新執行剛修改的初始化文件。 ...
Tomcat伺服器詳解
Tomcat伺服器理詳解 | 程式前沿 (codertw.com)
【Jenkins】常用plug-in
權限控管https://plugins.jenkins.io/matrix-auth/
【Jenkins】Jenkinsfile
Using a Jenkinsfile pipeline { agent any stages{ stage('Init'){ steps { echo "Testing......" } } stage('Build'){ steps { echo "Building......" ...
【Git】Github 新增專案檔案
create a new repository on the command line echo "# sample_proj" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/treemanou/sample_proj.git git push -u origin main push ...
【Vue】相關連結
前言 | 重新認識 Vue.js | Kuro Hsu [ 重構倒數30天,你的網站不Vue白不Vue ] :: 2021 iThome 鐵人賽 Vue.js 進階心法 :: 2021 iThome 鐵人賽 介绍 | Vue Router (vuejs.org) 【UI】Why Quasar? | Quasar Framework 【UI】Element Plus (element-plus.org) 【UI】vuetifyjs
Laravel 常見問題: Specified key was too long
Laravel 在 5.4 版之後為了支援 emoji , 因此將資料編碼改為 utf8mb4. 由於 utf8mb4 的儲存空間需求膨脹了4倍, 導致預設長度無法正常寫入資料庫.這個問題會在 MySQL 5.7.6 以下與 MariaDB 的環境中出現以下錯誤 [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 b...