Skip to content

Commit fee0e50

Browse files
committed
new article docker --progress=plain
1 parent ddbb389 commit fee0e50

File tree

5 files changed

+29
-11
lines changed

5 files changed

+29
-11
lines changed

2021/12/async_cancel_propagation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ index 5226249b..6de7f682 100644
6767

6868
```
6969
Dec 18 10:39:21 ww systemd[715]: Stopping graph...
70-
Dec 18 10:39:21 ww atlasd[1518986]: 2021-12-18 10:39:21.588323 INFO atlasd: Signal SIGTERM received, stopping this daemon server
71-
Dec 18 10:39:21 ww atlasd[1518986]: 2021-12-18 10:39:21.588408 INFO server::graph: Prepare to stop graph server
72-
Dec 18 10:39:21 ww atlasd[1518986]: 2021-12-18 10:39:21.588744 INFO start_prometheus_exporter{ip=0.0.0.0 port=19100 instance_kind=Graph}:prometheus_exporter(accept): common::metrics::prome>
73-
Dec 18 10:39:21 ww atlasd[1518986]: 2021-12-18 10:39:21.588830 INFO web::server: graceful shutdown web server
70+
Dec 18 10:39:21 ww appd[1518986]: 2021-12-18 10:39:21.588323 INFO appd: Signal SIGTERM received, stopping this daemon server
71+
Dec 18 10:39:21 ww appd[1518986]: 2021-12-18 10:39:21.588408 INFO server::graph: Prepare to stop graph server
72+
Dec 18 10:39:21 ww appd[1518986]: 2021-12-18 10:39:21.588744 INFO start_prometheus_exporter{ip=0.0.0.0 port=19100 instance_kind=Graph}:prometheus_exporter(accept): common::metrics::prome>
73+
Dec 18 10:39:21 ww appd[1518986]: 2021-12-18 10:39:21.588830 INFO web::server: graceful shutdown web server
7474
Dec 18 10:40:51 ww systemd[715]: graph.service: State 'stop-sigterm' timed out. Killing.
75-
Dec 18 10:40:51 ww systemd[715]: graph.service: Killing process 1518986 (atlasd) with signal SIGKILL.
75+
Dec 18 10:40:51 ww systemd[715]: graph.service: Killing process 1518986 (appd) with signal SIGKILL.
7676
Dec 18 10:40:51 ww systemd[715]: graph.service: Killing process 1518988 (tokio-runtime-w) with signal SIGKILL.
7777
Dec 18 10:40:51 ww systemd[715]: graph.service: Killing process 1518989 (tokio-runtime-w) with signal SIGKILL.
7878
Dec 18 10:40:51 ww systemd[715]: graph.service: Killing process 1518993 (tokio-runtime-w) with signal SIGKILL.

2021/12/cargo_tree_invert.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ openssl-sys v0.9.72
5757
├── native-tls v0.2.8
5858
│ ├── hyper-tls v0.5.0
5959
│ │ └── reqwest v0.11.7
60-
│ │ └── web v0.1.0 (/home/w/repos/haizhi/atlas/src/web)
61-
│ │ └── server v0.1.0 (/home/w/repos/haizhi/atlas/src/server)
60+
│ │ └── web v0.1.0 (/home/w/repos/company/app/src/web)
61+
│ │ └── server v0.1.0 (/home/w/repos/company/app/src/server)
6262
│ │ [dev-dependencies]
63-
│ │ └── web v0.1.0 (/home/w/repos/haizhi/atlas/src/web) (*)
63+
│ │ └── web v0.1.0 (/home/w/repos/company/app/src/web) (*)
6464
│ ├── reqwest v0.11.7 (*)
6565
│ └── tokio-native-tls v0.3.0
6666
│ ├── hyper-tls v0.5.0 (*)
6767
│ └── reqwest v0.11.7 (*)
6868
└── openssl v0.10.38
6969
├── native-tls v0.2.8 (*)
7070
└── osshkeys v0.5.2
71-
├── common v0.1.0 (/home/w/repos/haizhi/atlas/src/common)
71+
├── common v0.1.0 (/home/w/repos/company/app/src/common)
7272
...
7373
```
7474

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [docker --progress=plain](/2022/07/docker_build_progress_plain.md)
2+
3+
自从启用 buildkit 之后 docker build 的进度条就变成固定高度滚动更新的内容
4+
5+
```
6+
cat /etc/docker/daemon.json
7+
{
8+
"features": { "buildkit": true }
9+
}
10+
```
11+
12+
导致运行到 STEP 6 的时候看不到 STEP 5 的 stdout,没开 buildkit 的时候 dockerfile 代码会打成白色而 stdout/stderr 打成红色
13+
14+
今天才发现 docker build 加上 **--progress=plain** 参数可以保留所有 STEP 的所有输出

2022/07/docker_container_core_dumped_illegal_instruction.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [container illegal instr](/2022/07/docker_container_core_dumped_illegal_instruction.md)
1+
# [docker illegal instr](/2022/07/docker_container_core_dumped_illegal_instruction.md)
22

33
```
44
https://twitter.com/ospopen/status/1544970889925885952
@@ -11,6 +11,9 @@ illegal instruction (core dumped)
1111
看来还是高版本 glibc 编译出来的可执行文件不能在低版本系统运行的限制
1212
```
1313

14+
但我觉得是 fedora:36 的 glibc 2.35 发生了一些不兼容改动吧,
15+
毕竟公司生产服务器上宿主机 centos7 常年跑 centos8/ubuntu:20.04 的应用也没问题
16+
1417
容器内没有捕获 coredump 的话,coredump 会记录在宿主机的 dmesg
1518

1619
```

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
- [文章列表 - 吴翱翔的博客](/)
22
- **2022-07**
3-
- [container illegal instr](/2022/07/docker_container_core_dumped_illegal_instruction.md)
3+
- [docker --progress=plain](/2022/07/docker_build_progress_plain.md)
4+
- [docker illegal instr](/2022/07/docker_container_core_dumped_illegal_instruction.md)
45
- **2022-06**
56
- [arch pip TypeError](/2022/06/arch_pip_fail_after_system_upgrade.md)
67
- [/bin/timeout](/2022/06/bin_timeout.md)

0 commit comments

Comments
 (0)