fix docker
This commit is contained in:
parent
a03118ad68
commit
3dd2927bd2
|
|
@ -5,36 +5,7 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="de9fa6e3-30cd-4bd9-9de2-e5d7f0390fc8" name="更改" comment="">
|
<list default="true" id="de9fa6e3-30cd-4bd9-9de2-e5d7f0390fc8" name="更改" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/source/_posts/frontend/deploy/deploy.md" beforeDir="false" afterPath="$PROJECT_DIR$/source/_posts/frontend/deploy/deploy.md" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/_config.yml" beforeDir="false" afterPath="$PROJECT_DIR$/_config.yml" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/db.json" beforeDir="false" afterPath="$PROJECT_DIR$/db.json" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/2024/07/30/about/me/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/2024/07/30/about/me/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/2024/07/30/hello-world/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/2024/07/30/hello-world/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/404.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/404.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/archives/2024/07/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/archives/2024/07/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/archives/2024/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/archives/2024/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/archives/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/archives/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/categories/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/categories/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/favicon.ico" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/512.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/algolia.svg" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/comment_bg.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/default_cover.jpg" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/favicon.ico" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/loading.gif" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/siteicon/16.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/siteicon/32.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/siteicon/apple-icon-180.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/siteicon/manifest-icon-192.maskable.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/img/siteicon/manifest-icon-512.maskable.png" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/index.html" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/js/anzhiyu/ai_abstract.js" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/js/anzhiyu/comment_barrage.js" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/js/anzhiyu/people.js" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/js/anzhiyu/random_friends_post.js" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/js/anzhiyu/right_click_menu.js" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/public/tags/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/public/tags/index.html" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
|
@ -152,7 +123,7 @@
|
||||||
<workItem from="1722346590186" duration="1768000" />
|
<workItem from="1722346590186" duration="1768000" />
|
||||||
<workItem from="1722385471856" duration="1455000" />
|
<workItem from="1722385471856" duration="1455000" />
|
||||||
<workItem from="1722405691335" duration="3656000" />
|
<workItem from="1722405691335" duration="3656000" />
|
||||||
<workItem from="1722472583002" duration="3018000" />
|
<workItem from="1722472583002" duration="3568000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ menu:
|
||||||
highlight_theme: mac # darker / pale night / light / ocean / mac / mac light / false
|
highlight_theme: mac # darker / pale night / light / ocean / mac / mac light / false
|
||||||
highlight_copy: true # copy button
|
highlight_copy: true # copy button
|
||||||
highlight_lang: true # show the code language
|
highlight_lang: true # show the code language
|
||||||
highlight_shrink: true # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button
|
highlight_shrink: none # true: shrink the code blocks / false: expand the code blocks | none: expand code blocks and hide the button
|
||||||
highlight_height_limit: false # unit: px
|
highlight_height_limit: false # unit: px
|
||||||
code_word_wrap: false
|
code_word_wrap: false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
title: 'About me',
|
title: 'About me',
|
||||||
isPost: true,
|
isPost: true,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: true,
|
isToc: true,
|
||||||
postUpdate: '2024-07-30 17:30:19'
|
postUpdate: '2024-07-30 17:30:19'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
title: 'Hello World',
|
title: 'Hello World',
|
||||||
isPost: true,
|
isPost: true,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: true,
|
isToc: true,
|
||||||
postUpdate: '2024-07-30 16:28:32'
|
postUpdate: '2024-07-30 16:28:32'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -54,7 +54,7 @@
|
||||||
title: 'page',
|
title: 'page',
|
||||||
isPost: true,
|
isPost: true,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:13:35'
|
postUpdate: '2024-08-01 09:13:35'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
title: '页面没有找到',
|
title: '页面没有找到',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:30:27'
|
postUpdate: '2024-08-01 09:41:57'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
win.saveToLocal = {
|
win.saveToLocal = {
|
||||||
set: (key, value, ttl) => {
|
set: (key, value, ttl) => {
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
title: '七月 2024',
|
title: '七月 2024',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:30:27'
|
postUpdate: '2024-08-01 09:41:57'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
win.saveToLocal = {
|
win.saveToLocal = {
|
||||||
set: (key, value, ttl) => {
|
set: (key, value, ttl) => {
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
title: '八月 2024',
|
title: '八月 2024',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:30:27'
|
postUpdate: '2024-08-01 09:41:57'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
win.saveToLocal = {
|
win.saveToLocal = {
|
||||||
set: (key, value, ttl) => {
|
set: (key, value, ttl) => {
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
title: '2024',
|
title: '2024',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:30:27'
|
postUpdate: '2024-08-01 09:41:57'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
win.saveToLocal = {
|
win.saveToLocal = {
|
||||||
set: (key, value, ttl) => {
|
set: (key, value, ttl) => {
|
||||||
|
|
|
||||||
|
|
@ -52,9 +52,9 @@
|
||||||
title: 'Archives',
|
title: 'Archives',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-08-01 09:30:27'
|
postUpdate: '2024-08-01 09:41:57'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
win.saveToLocal = {
|
win.saveToLocal = {
|
||||||
set: (key, value, ttl) => {
|
set: (key, value, ttl) => {
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
title: 'categories',
|
title: 'categories',
|
||||||
isPost: false,
|
isPost: false,
|
||||||
isHome: false,
|
isHome: false,
|
||||||
isHighlightShrink: true,
|
isHighlightShrink: undefined,
|
||||||
isToc: false,
|
isToc: false,
|
||||||
postUpdate: '2024-07-31 14:37:23'
|
postUpdate: '2024-07-31 14:37:23'
|
||||||
}</script><script>(win=>{
|
}</script><script>(win=>{
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -12,41 +12,48 @@ tags:
|
||||||
```shell
|
```shell
|
||||||
sudo curl -fsSL https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun
|
sudo curl -fsSL https://gitee.com/tech-shrimp/docker_installer/releases/download/latest/linux.sh| bash -s docker --mirror Aliyun
|
||||||
```
|
```
|
||||||
|
|
||||||
2. 启动docker
|
2. 启动docker
|
||||||
```shell
|
```shell
|
||||||
sudo systemctl start docker
|
sudo systemctl start docker
|
||||||
```
|
```
|
||||||
|
|
||||||
3. 设置开机自启
|
3. 设置开机自启
|
||||||
```shell
|
```shell
|
||||||
sudo systemctl enable docker
|
sudo systemctl enable docker
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Docker pull images
|
4. Docker pull images
|
||||||
> 将image下载到阿里云镜像仓库中
|
> 将image下载到阿里云镜像仓库中
|
||||||
> 解决docker pull 镜像问题:https://github.com/shenjianZ/docker_image_pusher
|
> 解决docker pull 镜像问题:https://github.com/shenjianZ/docker_image_pusher
|
||||||
|
|
||||||
1. 登录阿里云镜像服务 https://cr.console.aliyun.com/,启用个人实例,创建一个命名空间(ALIYUN_NAME_SPACE)
|
1. **登录阿里云镜像服务** https://cr.console.aliyun.com/,
|
||||||
|
|
||||||
访问凭证–>获取环境变量
|
启用个人实例,创建一个命名空间(`ALIYUN_NAME_SPACE`)
|
||||||
|
|
||||||
用户名(ALIYUN_REGISTRY_USER)
|
2. 在**访问凭证** 可以看到账号 用户名(`ALIYUN_REGISTRY_USER`)
|
||||||
|
|
||||||
密码(ALIYUN_REGISTRY_PASSWORD)
|
密码(`ALIYUN_REGISTRY_PASSWORD`)
|
||||||
|
|
||||||
仓库地址(ALIYUN_REGISTRY)
|
仓库地址(`ALIYUN_REGISTRY`)
|
||||||
|
|
||||||
启动Action
|
3. **启动Action**
|
||||||
|
进入您自己的项目,点击`Action`,启用`Github Action`功能
|
||||||
|
|
||||||
进入您自己的项目,点击Action,启用Github Action功能
|
4. **配置环境变量**
|
||||||
|
进入Settings->Secret and variables->Actions->New Repository secret
|
||||||
|
将上一步的四个值
|
||||||
|
`ALIYUN_NAME_SPACE`,
|
||||||
|
|
||||||
配置环境变量
|
` ALIYUN_REGISTRY_USER`,
|
||||||
进入Settings->Secret and variables->Actions->New Repository secret
|
|
||||||
|
|
||||||
将上一步的四个值
|
`ALIYUN_REGISTRY_PASSWORD`,
|
||||||
ALIYUN_NAME_SPACE,ALIYUN_REGISTRY_USER,ALIYUN_REGISTRY_PASSWORD,ALIYUN_REGISTRY
|
|
||||||
配置成环境变量
|
|
||||||
|
|
||||||
添加镜像
|
`ALIYUN_REGISTRY`
|
||||||
打开images.txt文件,添加你想要的镜像 可以加tag
|
配置成环境变量
|
||||||
|
|
||||||
使用镜像
|
5. **添加镜像**
|
||||||
回到阿里云,镜像仓库,点击任意镜像,可查看镜像状态。(可以改成公开,拉取镜像免登录)
|
打开`images.txt`文件,添加你想要的镜像 可以加tag
|
||||||
|
|
||||||
|
6. 使用镜像
|
||||||
|
回到阿里云,镜像仓库,点击任意镜像,可查看镜像状态。(可以改成公开,拉取镜像免登录)
|
||||||
Loading…
Reference in New Issue