clock-in-dockerfile/README.md

51 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# clock-in-dockerfile
一份简单的docker镜像打包教程供需要的人使用
#### How To Use
如果你是懒狗,有人已经帮你打包好了一份镜像
- ~~~bash
docker run -e account="319010xxxx" -e password="cxz666" -d registry.cn-hangzhou.aliyuncs.com/raynor/clock-in
~~~
注意看一眼啊account和password改成自己的**别照抄了**
- ok 下班
如果你希望自己编译
- 首先你需要安装一个docker具体版本不重要安装教程请参考https://dockerdocs.cn/get-docker/index.html
- git clone 一份本仓库到本地
~~~bash
git clone https://git.zjueva.net/ChenXuzheng/clock-in-dockerfile
~~~
- 使用如下命令进行打包当然你可以先看看main.py的代码进行自己希望的定制因为我是懒狗所以是做了能用的功能你可以自己加一些推送相关的
~~~bash
cd clock-in-dockerfile
# 注意这个-t很重要设置tag名字的意思可以起一个你喜欢的名字
docker build . -t clock-in
~~~
- 这时候你应该就有了一个可以用的镜像现在把他run起来
~~~bash
docker run -e account="319010xxxx" -e password="cxz666" -d clock-in
~~~
注意看一眼啊account和password改成自己的**别照抄了** 最后的clock-in是tag的名字如果你上方 - t 设置了其他的名字请修改成tag的名字
- ok 已经结束了
docker ps看一眼有没有跑起来就行