安装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. python scipy库

    三.假定正态分布,求解1倍标准差和0.5倍标准差的概率? 二.求解多元线性或非线性方程组解 一.求解3元一次方程 1.学习资料  https://github.com/lijin-THU/notes- ...

  2. EUI库 - 容器

      eui.UILayer UILayer是Group的子类它只有一个功能,到放到场景上后,宽高永远和场景宽度一致   Group Group 是自动布局的容器基类.如果包含的子项内容太大需要滚动显示 ...

  3. 洛谷 P1833 樱花

    题目传送门 解题思路: 就是完全背包和多重背包的混合.处理时间的时候注意一下就行了 AC代码: #include<iostream> #include<cstdio> usin ...

  4. Jquery获取html标签,包含该标签本身

    $(".test").prop("outerHTML"); 原生JS DOM里有一个内置属性 outerHTML,用来获取当前节点的html代码(包含当前节点) ...

  5. .Net实现发送邮件功能

    public ActionResult AddPost()         {            ResponseResult result = new ResponseResult();     ...

  6. Mac下使用Hexo搭建个人博客

    Hexo介绍 利用原作者的一句话:A fast,simple&powerful blog framework,powered by Node.js Hexo是基于Node.js的博客平台,He ...

  7. 分页助手PageHelper学习

    PageHelper是mybatis的通用分页插件,通过mybatis的拦截器实现分页功能,拦截sql查询请求,添加分页语句, 最终实现分页查询功能.在 springboot上集成pagehelper ...

  8. maven工具引入lib下的jar文件

    <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot ...

  9. Linux(CENTOS7) NodeJs安装

    1.下载NodeJs 官网下载地址:http://nodejs.cn/download/ ​ 2.上传到linux系统 我这里上传到/disk/nodejs目录下面的,上传工具使用的xftp. ​ 3 ...

  10. 工程日记之HelloSlide(2) : UITextView中如何根据给定的长宽,计算最合适的字体大小

    需求描述 一般的需求是将UITextview的大小自适应文本高度,会做出随文本内容增加,文字框不断增大的效果: 本文反其道而行之,在给定文字框大小的情况下:字数越多,字体越小: 需求来源: 考虑将文字 ...