安装docker

  • 安装 virtualbox
  • 下载 dockertoolbox并安装

官网的服务器一直连不上, 幸亏还有这个 https://get.daocloud.io/toolbox/http://mirrors.aliyun.com/docker-toolbox/ 更新及时点

用docker安装gitlab

配置ip

192.168.99.100 是virtualbox生成的局域网ip地址,为了让其他机器可以访问到它, 需要进一步配置。

思路是将192.168.99.100 转发给服务器的ip, 如下图:

附运行日志

keke.zhaokk@ALI-35926N MINGW64 /d/Private/Desktop
$ docker-machine create --engine-registry-mirror=https://****.mirror.aliyuncs.com -d virtualbox default
$ docker-machine env default
$ eval "$(docker-machine env default)"
$ docker info

显示正常

keke.zhaokk@ALI-35926N MINGW64 /d/Private/Desktop
$ docker pull sameersbn/gitlab:8.7.0
8.7.0: Pulling from sameersbn/gitlab 759d6771041e: Pull complete ================================================>] 65.69 MB/65.69 MBB
8836b825667b: Pull complete ================================================>] 71.48 kB/71.48 kBB
c2f5e51744e6: Pull complete ================================================>] 681 B/681 BB
a3ed95caeb02: Pull complete ================================================>] 32 B/32 BB
4317b5b0c2e1: Pull complete ================================================>] 2.586 MB/2.586 MBB
f8f5ef388ea3: Pull complete ================================================>] 69.5 MB/69.5 MBB
0e1260feafd2: Pull complete ================================================>] 3.258 kB/3.258 kBB
77753f6f394c: Pull complete ================================================>] 149.7 MB/149.7 MBB
dc9d44c8b12c: Pull complete ================================================>] 26.33 kB/26.33 kBB
a73c17bdc7e2: Pull complete ================================================>] 654 B/654 BB
7db74b8c9d88: Pull complete ================================================>] 653 B/653 BB
Digest: sha256:36b56b6a9821bfa752d9ecd6f9d59b6e2ed4d5430efa0acd2133985ba7ff3224
Status: Downloaded newer image for sameersbn/gitlab:8.7.0 keke.zhaokk@ALI-35926N MINGW64 /d/Private/Desktop
$ curl -O https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1554 100 1554 0 0 384 0 0:00:04 0:00:04 --:--:-- 585 keke.zhaokk@ALI-35926N MINGW64 /d/Private/Desktop
$ docker-compose up
Pulling redis (sameersbn/redis:latest)...
latest: Pulling from sameersbn/redis
759d6771041e: Already exists
8836b825667b: Already exists
c2f5e51744e6: Already exists
a3ed95caeb02: Already exists
4317b5b0c2e1: Already exists
cedb06c1c707: Pull complete=================================================>] 740.6 kB/740.6 kBB
e8374055db84: Pull complete=================================================>] 696 B/696 BB
ad68fa18a2ba: Pull complete=================================================>] 699 B/699 BB
Digest: sha256:653fbcbe1f9006e7dc7282d124f90a493ba2c8fafae31d5d6c5b344d21e99d77
Status: Downloaded newer image for sameersbn/redis:latest
Pulling postgresql (sameersbn/postgresql:9.4-20)...
9.4-20: Pulling from sameersbn/postgresql
759d6771041e: Already exists
8836b825667b: Already exists
c2f5e51744e6: Already exists
a3ed95caeb02: Already exists
4317b5b0c2e1: Already exists
3fbfecf1335a: Pull complete=================================================>] 13.62 MB/13.62 MBB
e4a651876d33: Pull complete=================================================>] 4.332 kB/4.332 kBB
8bd3de79a26d: Pull complete=================================================>] 538 B/538 BB
cf176e09c435: Pull complete=================================================>] 535 B/535 BB
e66bc8397b35: Pull complete=================================================>] 134 B/134 BB
Digest: sha256:95feaaa1f225805c1f08a08293401b4bcc6d4ca4b4d67cead1f0054af8346f3e
Status: Downloaded newer image for sameersbn/postgresql:9.4-20
Creating desktop_postgresql_1
Creating desktop_redis_1
Creating desktop_gitlab_1
Attaching to desktop_postgresql_1, desktop_redis_1, desktop_gitlab_1
postgresql_1 | Initializing datadir...
postgresql_1 | Initializing certdir...
postgresql_1 | Initializing logdir...
postgresql_1 | Initializing rundir...
postgresql_1 | Setting resolv.conf ACLs...
postgresql_1 | Initializing database...
redis_1 | Starting redis-server...
redis_1 | _._
redis_1 | _.-``__ ''-._
redis_1 | _.-`` `. `_. ''-._ Redis 2.8.4 (00000000/0) 64 bit
redis_1 | .-`` .-```. ```\/ _.,_ ''-._
redis_1 | ( ' , .-` | `, ) Running in stand alone mode
redis_1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
redis_1 | | `-._ `._ / _.-' | PID: 1
redis_1 | `-._ `-._ `-./ _.-' _.-'
redis_1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis_1 | | `-._`-._ _.-'_.-' | http://redis.io
redis_1 | `-._ `-._`-.__.-'_.-' _.-'
redis_1 | |`-._`-._ `-.__.-' _.-'_.-'|
redis_1 | | `-._`-._ _.-'_.-' |
redis_1 | `-._ `-._`-.__.-'_.-' _.-'
redis_1 | `-._ `-.__.-' _.-'
redis_1 | `-._ _.-'
redis_1 | `-.__.-'
redis_1 |
redis_1 | [1] 03 May 02:56:44.697 # Server started, Redis version 2.8.4 ...

利用docker安装gitlab的更多相关文章

  1. Docker安装Gitlab

    一.Ubuntu16.4上Docker安装Gitlab 1.安装docker 参见:https://docs.docker.com/engine/installation/linux/ubuntuli ...

  2. CentOS中利用Docker安装RabbitMQ

    CentOS中利用Docker安装RabbitMQ 1.拉取镜像(带管理平台) #docker pull rabbitmq:3.7.7-management 2.启动容器: #docker run - ...

  3. CentOS中利用Docker安装Redis

    CentOS中利用Docker安装Redis 1.拉取镜像 #docker pull redis:4.0.10 2.加载镜像 #docker run -p 6379:6379 --name test- ...

  4. 解决 Windows Docker 安装 Gitlab Volume 权限问题

    本文首发于我的个人博客,解决 Windows Docker 安装 Gitlab Volume 权限问题 ,欢迎访问! 记录一下 Windows10 下 Docker 安装 Gitlab 的步骤. Ca ...

  5. CentOS7利用docker安装MySQL5.7

    CentOS7利用docker安装MySQL5.7 前提条件 centos7 且内核版本高于3.10, 可通过以下命令查看内核版本 uname -r 利用yum 安装docker 安装一些必要的系统工 ...

  6. docker安装gitlab并部署CICD

    摘要 本文主要实现了在docker下安装gitlab,将gitlab绑定在宿主机的180端口,将gitlab的clone的URL添加指定端口号:部署了CI/CD,并公布了测试项目. 安装docker[ ...

  7. docker 安装gitlab

    # docker 安装gitlab # 一.安装镜像(官网文档) export GITLAB_HOME=/srv/gitlab # 必须先设置它,它就是你存储代码仓库的位置.以后要移植的时候直接把这个 ...

  8. Debian9 使用 Docker 安装 gitlab完整过程

    一. 安装Docker CE (参考 官网指南) 1. 卸载老版本 sudo apt-get remove docker docker-engine docker.io  2. Update the ...

  9. centos7下使用docker安装gitlab

    环境背景: Docker化已经成为一种热门,记录一下使用docker引擎安装gitlab的过程. 测试环境: 系统 软件 依赖 CentOS 7.4 GitLab(latest) docker-ce ...

随机推荐

  1. POJ 1050:To the Max

    To the Max Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 43241   Accepted: 22934 Desc ...

  2. Spark-大数据计算引擎

    Spark简介: Spark是一个快速且通用的集群计算平台,可以处理大数据量时候,比如几T到几P量级时候只需要几秒钟到几分钟,相对于hadoop几分钟到几小时速度是很快的,通用是指Spark的使用场景 ...

  3. 【pwnable.kr】bof

    pwnable从入门到放弃,第三题. Download : http://pwnable.kr/bin/bofDownload : http://pwnable.kr/bin/bof.c Runnin ...

  4. Angular全局数据管理与同步更新

    自定义实现angular中数据的状态管理,如有不妥请指正 一.先介绍一下rxjs中subject: Import {subject}from’rxjs’ Subject 数据的订阅与分发,结合报刊的发 ...

  5. Ganglia 安装 No package 'ck' found

    安装ConcurrecyKit,下载地址:https://github.com/concurrencykit/ck   编译安装即可 下面是一个歪果仁的解决办法,不过我没用上 I was buildi ...

  6. cnblogs今天挂了

    刚打算搬进来常驻cnblogs,好死不死,它今天11点40分左右挂了.真是不让人省心: 今天把这后面这几个月的随笔放过来,希望能不会被清掉:

  7. CSS绘制小三角

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  8. Java IO流操作 (I)

    1.FileWriter 写数据---输出流---由控制台向文件中写数据 import java.io.FileWriter; import java.io.IOException; /* * 写数据 ...

  9. nodejs(14)express获取url中的参数

    问号传参获取参数 获取 http://127.0.0.1:3001/user?id=10&name=zs 中的查询参数: 直接使用 req.query 获取参数即可: 注意:URL 地址栏中通 ...

  10. UML-测试驱动开发

    1.什么是测试驱动开发? 测试驱动开发(TDD)是迭代和敏捷XP方法提倡的优秀实践,该实践为测试测试优先开发.不仅包含单元测试. 2.为什么测试驱动开发? 1).最大提升代码稳定性 2).澄清接口和行 ...