自己只做了个docker jekyll环境跑gitpage的blog。
Dockerfile 目录文件详情
[root@xiexianbin_cn docker]# ll
total 15092
-rw-r--r-- 1 root root 2573 Oct 23 13:52 Centos-7.repo
-rw-r--r-- 1 root root 742 Oct 23 13:52 Dockerfile
-rw-r--r-- 1 root root 201 Oct 23 13:52 Gemfile
-rw-r--r-- 1 root root 80732 Oct 23 13:52 libuv-1.9.1-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 4796624 Oct 23 13:53 nodejs-6.9.1-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 2563156 Oct 23 13:53 npm-3.10.8-1.6.9.1.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 4718592 Oct 23 13:54 ruby-2.3.1-1.el7.centos.x86_64.rpm
-rw-r--r-- 1 root root 3276800 Oct 23 13:54 ruby-debuginfo-2.3.1-1.el7.centos.x86_64.rpm
[root@xiexianbin_cn docker]#
相关文件:下载地址
Docker build 命令
docker build -t xiexianbin/centos7:jekyll .
docker build 过程
docker build -t xiexianbin/centos7:jekyll .
登录Docker Hub
[root@xiexianbin_cn ~]# docker login
Username: xiexianbin
Password:
Email: me@xiexianbin.cn
WARNING: login credentials saved in /root/.dockercfg.
Login Succeeded
[root@xiexianbin_cn ~]#
docker push
docker push xiexianbin/centos7:jekyll
最新评论
加载中...