docker build redmine for centos7
1.run docker command
[root@VM_0_7_centos ~]# docker run --name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='DB_USER=redmine' --env='DB_PASS=password' sameersbn/postgresql:9.4-12
e038010f4bea9d5ca08eb8b474a21757135ff49593e8cb3a6101b24cdde9ae52
[[email protected]_0_7_centos ~]# docker run --name=redmine -d --link=postgresql-redmine:postgresql --publish=10083:80 --env='REDMINE_POST=10083' sameersbn/redmine:3.2.0-4
Unable to find image 'sameersbn/redmine:3.2.0-4' locally
Trying to pull repository docker.io/sameersbn/redmine ...
3.2.0-4: Pulling from docker.io/sameersbn/redmine
8387d9ff0016: Already exists
3b52deaaf0ed: Already exists
4bd501fad6de: Already exists
a3ed95caeb02: Pull complete
012013682669: Already exists
16325a98f6c8: Pull complete
b7c84814a063: Pull complete
d242f6983f8d: Pull complete
8f7aa319f1e8: Pull complete
0085fca6a23b: Pull complete
b48b8dd1efcd: Pull complete
Digest: sha256:3df4b64773a022cb7920d7a04e2303ada7385c5549db9f069d20267590f33a50
Status: Downloaded newer image for docker.io/sameersbn/redmine:3.2.0-4
e92b61cf18c7807b3817a11951fb4742d4e6a44f70a85806c05db12d4dc18476
2.view docker images and port
[[email protected]_0_7_centos ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/wordpress latest 9414 c91da9a8 9 days ago 408 MB
docker.io/sameersbn/gitlab latest 50237d0663bd 11 days ago 2.09 GB
docker.io/gitlab/gitlab-ce latest d87e1ba8aa5f 13 days ago 1.46 GB
docker.io/sameersbn/redis latest ad607f019b8c 2 weeks ago 84.8 MB
docker.io/mariadb latest 2c73b3262fff 2 weeks ago 363 MB
docker.io/hello-world latest 2cb0d9787c4d 4 weeks ago 1.85 kB
docker.io/sameersbn/gitlab 8.4.4 9d1069e2b30c 2 years ago 720 MB
docker.io/sameersbn/redmine 3.2.0-4 7eb43870e9c7 2 years ago 636 MB
docker.io/sameersbn/postgresql 9.4-12 a100f2a18ec3 2 years ago 231 MB
[[email protected]_0_7_centos ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e92b61cf18c7 sameersbn/redmine:3.2.0-4 "/sbin/entrypoint...." 2 minutes ago Up About a minute 443/tcp, 0.0.0.0:10083->80/tcp redmine
e038010f4bea sameersbn/postgresql:9.4-12 "/sbin/entrypoint.sh" 23 minutes ago Up 23 minutes 5432/tcp postgresql-redmine
c23102334507 sameersbn/gitlab:8.4.4 "/sbin/entrypoint...." 6 hours ago Up 6 hours 443/tcp, 0.0.0.0:10022->22/tcp, 0.0.0.0:10080->80/tcp gitlab
511be91cca0a sameersbn/redis:latest "/sbin/entrypoint.sh" 7 hours ago Up 7 hours 6379/tcp gitlab-redis
e9bba5e833b6 sameersbn/postgresql:9.4-12 "/sbin/entrypoint.sh" 7 hours ago Up 7 hours 5432/tcp gitlab-postgre-sql
8001906c5274 wordpress "docker-entrypoint..." 8 hours ago Up 8 hours 0.0.0.0:8080->80/tcp MyWordPress
da706ccdc499 mariadb "docker-entrypoint..." 8 hours ago Up 8 hours 3306/tcp db
a650e5202d27 hello-world "/hello" 8 hours ago Exited (0) 8 hours ago thirsty_carson
3f42d867d0ba hello-world "/hello" 8 hours ago Exited (0) 8 hours ago peaceful_euclid
netstat -tlnp
[root@VM_0_7_centos ~]# netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 827/httpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 828/sshd
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 14453/zabbix_agentd
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 10745/zabbix_server
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1219/mysqld
tcp6 0 0 :::111 :::* LISTEN 10815/rpcbind
tcp6 0 0 :::8080 :::* LISTEN 11164/docker-proxy-
tcp6 0 0 :::3000 :::* LISTEN 10278/grafana-serve
tcp6 0 0 :::10080 :::* LISTEN 23918/docker-proxy-
tcp6 0 0 :::10050 :::* LISTEN 14453/zabbix_agentd
tcp6 0 0 :::10083 :::* LISTEN 31979/docker-proxy-
tcp6 0 0 :::10051 :::* LISTEN 10745/zabbix_server
tcp6 0 0 :::10022 :::* LISTEN 23928/docker-proxy-
3.access url
url:http://ip:10083/
user:admin
password:admin
使用docker-compose管理
例如:使用Docker Compose來管理redmine專案,編寫.yml file
[[email protected]_0_7_centos redmine]# cat docker-compose.yml
postgresql:
image: sameersbn/postgresql:9.4-12
environment:
- DB_NAME=redmine_production
- DB_USER=redmine
- DB_PASS=password
redmine:
image: sameersbn/redmine:3.2.0-4
links:
- postgresql:postgresql
ports:
- "10083:80"
environment:
- REDMINE_POST=10083
[[email protected]_0_7_centos redmine]# pwd
/root/redmine
[[email protected]_0_7_centos redmine]#
執行新容器組的建立和啟動。
[[email protected]_0_7_centos redmine]# docker-compose up -d
[[email protected]_0_7_centos redmine]# docker-compose start
Starting postgresql ... done
Starting redmine ... done
[[email protected]_0_7_centos redmine]# docker-compose stop
Stopping redmine_redmine_1 ... done
Stopping redmine_postgresql_1 ... done
[[email protected]_0_7_centos redmine]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f3e8083dc3d5 sameersbn/redmine:3.2.0-4 "/sbin/entrypoint...." About a minute ago Exited (137) 5 seconds ago redmine_redmine_1
303f49fbe4b7 sameersbn/postgresql:9.4-12 "/sbin/entrypoint.sh" About a minute ago Exited (0) 3 seconds ago redmine_postgresql_1
相關推薦
docker build redmine for centos7
1.run docker command [root@VM_0_7_centos ~]# docker run --name=postgresql-redmine -d --env='DB_NAME=redmine_production' --env='D
Docker for Centos7 push ISO fail
log source refers 一個 gin cto dig user fff 1.首先需要到hub docker創建賬號和密碼由於我們生活在富強而自立的×××,所以所以要掛一個代理才能順利註冊,因為註冊的時候需要有一個google的驗證插件。2.修改鏡像名稱前方高能:
kubernetes-docker for centos7 叢集部署
kubernetes-docker叢集相關主機 docmaster :10.117.130.178 docslave1 :10.117.130.148 docslave2 :10.117.130.147 docslave1和docslave2安裝部署docker 1、確保機
docker install for Centos7
use yum install(CentOS 7) Docker requires CentOS to have kernel version higher than 3.10 ,and check the prerequisites on this page
docker build
always side for 建議 -1 success 如果 variable enc 命令:docker build [[email protected]/* */ ~]# docker build --help Usage: docker bu
docker build報錯
es2017 方法 blog http oca 問題 log image mage docker build 遇到問題 "can not stat ... APPData\Local\Application Data" 解決方法: docker build報錯
SecureCRT/FX 8.0.0 (build 1063) for Windows 破解版
下載 保持 序列 技術 準備 gin 運行 密文 第一次 SecureCRT 是一款 Windows 上專業的終端 SSH 工具,類似於 Windows 中的 Putty,SecureCRT 支持 SSH1、SSH2、Telnet 等遠程連接,同時具有很多實用和專業的輔助功
Docker Compose 安裝 on centos7
github 權限 tps 方法 down chmod 安裝包 load 如果 1 在線安裝 1.1 下載安裝包 $ curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-comp
docker build 的 cache 機制
包括 鏡像 存在 沒有 pretty -- 安裝、配置 nbsp bsp cache 機制註意事項 可以說,cache 機制很大程度上做到了鏡像的復用,降低存儲空間的同時,還大大縮短了構建時間。然而,不得不說的是,想要用好 cache 機制,那就必須了解利用 cache 機
Jenkins Docker安裝及Docker build step插件部署配置
export 系統管 終端 51cto 技術分享 load ip地址 插件 服務器 Docker-build-step插件安裝部署1.打開系統管理,插件管理,找到Docker build step插件,勾選選中,點擊直接安裝,安裝完成後重啟一下Jenkins容器;2.使用終
Virtualbox添加磁盤for Centos7
是否 power .com man 查看 med start pow 虛擬 本文源鏈接地址:https:www.93bok.com 虛擬機遷移完了,由於之前遷移過來的虛擬機lianni06的磁盤已經不夠使用,需要再添加一塊磁盤,並做成LVM格式的可擴展磁盤,方便日後擴展磁盤
Virtualbox虛擬機遷移for Centos7
ada 主機 列表 com ssh連接 但是 技術 apt png 本文源鏈接地址:https:www.93bok.com 服務器部署完了,現在需要把我的win7電腦上的vbox虛擬機轉移到這臺centos7的服務器上 1、先把該虛擬機的硬盤、虛擬機目錄上傳到服務器的指定
Virtualbox命令行安裝for Centos7
uri alt .org mod rpm 運行 inux 前言 ora 本文源鏈接地址:https:www.93bok.com 前言 我們一般使用虛擬軟件來搭建虛擬機,比如Vmware和Virtualbox(以下簡稱vbox),但是大部分情況都是,在Windows上安裝這些
Virtualbox創建虛擬機for Centos7
png -m art cab ip地址 ict 鏡像 一個 報錯 本文源鏈接地址:https:www.93bok.com 1、宿主機上創建vbox的虛擬機目錄、硬盤目錄、iso目錄 mkdir -p /vms/virtualbox/disk mkdir -p /vms/vi
Virtualbox虛擬機開機自啟for Centos7
chgrp uri str 查看 ash com strong 技術分享 虛擬機 本文源鏈接地址:https:www.93bok.com 1、設置自啟動的兩個環境變量 vim /etc/default/virtualbox VBOXAUTOSTART_DB=/etc/vb
Signing package index... Cannot open file '/home/jello/openwrt/key-build' for reading
all 選項 conf 3.1 -s oba ner 代號 -c 一.環境 發行版:Ubuntu 18.04.1 LTS 代號:bionic 內核版本:4.15.0-30-generic 二.背景 在編譯Openwrt/LEDE時出現以下錯誤,進而自動終止了編譯: Si
flask報錯:werkzeug.routing.BuildError: Could not build url for endpoint 'index'. Did you mean 'single' instead?
flask inf col 技術分享 ima targe csdn target url 錯誤代碼 參考:https://blog.csdn.net/qq_27468251/article/details/81359701 改為 flask報錯:
zabbix3.4 for centos7安裝
mys ref sql web ofo 重啟 utf8 ava rac zabbix安裝部分 安裝zabbix 源rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el
3-3.5.1 docker build 用法
在包含Dockerfile 檔案的目錄下執行: docker build -t nginx:v3 . 即是建立了映象。 docker build 命令進行映象構建。其格式為: docker build [選項] <上下文路徑/URL/-> 映象構建上下文
docker build 報錯 The following signatures were invalid
構建映象的時候遇到 GPG error: https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release: The following signatures we