diff --git a/06_repository/6.2_registry.md b/06_repository/6.2_registry.md index 32f7dbb..114409c 100644 Binary files a/06_repository/6.2_registry.md and b/06_repository/6.2_registry.md differ diff --git a/06_repository/6.4_nexus3_registry.md b/06_repository/6.4_nexus3_registry.md index ceed15b..8f3aa90 100644 Binary files a/06_repository/6.4_nexus3_registry.md and b/06_repository/6.4_nexus3_registry.md differ diff --git a/07_dockerfile/7.8_volume.md b/07_dockerfile/7.8_volume.md index 92a2445..43c18c1 100644 --- a/07_dockerfile/7.8_volume.md +++ b/07_dockerfile/7.8_volume.md @@ -126,7 +126,7 @@ VOLUME /data #### 数据库持久化 ```docker -FROM postgres:15 +FROM postgres:16 VOLUME /var/lib/postgresql/data ``` @@ -181,7 +181,7 @@ $ docker inspect mycontainer --format '{{json .Mounts}}' | jq ```yaml services: db: - image: postgres:15 + image: postgres:16 volumes: # 命名卷(推荐) @@ -224,7 +224,7 @@ $ docker run -v mysql_data:/var/lib/mysql mysql:8.0 ```docker ## 数据库必须使用卷 -FROM postgres:15 +FROM postgres:16 VOLUME /var/lib/postgresql/data ``` diff --git a/14_kubernetes_setup/14.7_dashboard.md b/14_kubernetes_setup/14.7_dashboard.md index 5c88951..6475729 100644 --- a/14_kubernetes_setup/14.7_dashboard.md +++ b/14_kubernetes_setup/14.7_dashboard.md @@ -9,7 +9,7 @@ 执行以下命令即可部署 Dashboard: ```bash -kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0/aio/deploy/recommended.yaml +kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml ``` ### 14.7.2 访问 diff --git a/15_etcd/15.2_install.md b/15_etcd/15.2_install.md index d745762..07be720 100644 --- a/15_etcd/15.2_install.md +++ b/15_etcd/15.2_install.md @@ -13,12 +13,12 @@ 例如,使用 `curl` 工具下载压缩包,并解压。 ```bash -$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.4.0/etcd-v3.4.0-linux-amd64.tar.gz -o etcd-v3.4.0-linux-amd64.tar.gz +$ curl -L https://github.com/etcd-io/etcd/releases/download/v3.5.17/etcd-v3.5.17-linux-amd64.tar.gz -o etcd-v3.5.17-linux-amd64.tar.gz ## 国内用户可选择就近的网络加速方式(以可用镜像站为准) -$ tar xzvf etcd-v3.4.0-linux-amd64.tar.gz -$ cd etcd-v3.4.0-linux-amd64 +$ tar xzvf etcd-v3.5.17-linux-amd64.tar.gz +$ cd etcd-v3.5.17-linux-amd64 ``` 解压后,可以看到文件包括 @@ -70,8 +70,8 @@ $ docker run \ -p 2379:2379 \ -p 2380:2380 \ --mount type=bind,source=/tmp/etcd-data.tmp,destination=/etcd-data \ ---name etcd-gcr-v3.4.0 \ -quay.io/coreos/etcd:v3.4.0 \ +--name etcd-gcr-v3.5.17 \ +quay.io/coreos/etcd:v3.5.17 \ /usr/local/bin/etcd \ --name s1 \ --data-dir /etcd-data \ diff --git a/appendix/repo/nodejs.md b/appendix/repo/nodejs.md index 66e1d63..91c5a68 100644 --- a/appendix/repo/nodejs.md +++ b/appendix/repo/nodejs.md @@ -11,7 +11,7 @@ 在项目中创建一个 Dockerfile。 ```docker -FROM node:12 +FROM node:20 ## replace this with your application's default port EXPOSE 8888 @@ -33,7 +33,7 @@ $ docker run -it --rm \ --mount type=bind,src="$(pwd)",target=/usr/src/myapp \ -w /usr/src/myapp \ - node:12-alpine \ + node:20-alpine \ node your-daemon-or-script.js ```