14 Commits

Author SHA1 Message Date
chenjiankun
d13823d8e0 docker: ensure layer digest folder removed if ls.driver.Remove fails
If image pull fails of context canceled, image layer will perform a
rollback operation. When image layer is released, the diff folder of layer
will be removed first, and then the digest folder will be removed.
If the diff folder fails to be removed, such as operation not permitted or
interrupted by others, both the digest folder and diff folder will remain
on the disk, this will cause image not be complete and not repairable.

So we should remove the digest folder first for image layers rollback
and ensure image can be re-pulled completely.

(cherry picked from commit 54c9d1260f3b7756794a8b8c13e0080831c29203)
2022-09-16 09:24:39 +08:00
chenjiankun
7fed8d00d0 docker: sync openEuler-22.03-LTS-Next with openEuler-22.03-LTS 2022-09-15 16:58:10 +08:00
chenjiankun
d13f0e239e add GO111MODULE=off for build in golang 1.17.3 2021-12-28 10:23:13 +08:00
xiadanni
06a66dabde docker:update seccomp whitelist to Linux 5.10 syscall list
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2021-09-26 05:49:25 +08:00
xiadanni
7b18fd9382 docker:add clone3 to seccomp whitelist to fix curl failed in X86
After kernel upgrade to 5.10, clone3 is defined. But if clone3 is not
added to docker seccomp whitelist, clone3 calling will be rejected in
container, which causes some commands like curl returns error.

Signed-off-by: xiadanni <xiadanni1@huawei.com>
2021-09-08 13:00:11 +08:00
chenjiankun
6a44acb1d7 Enable debuginfo 2021-09-06 14:57:42 +08:00
WangFengTu
82696f6e38 rollback if docker restart when doing BlkDiscard
Signed-off-by: WangFengTu <wangfengtu@huawei.com>
2021-04-01 16:25:19 +08:00
xiadanni
1bae2e5ea3 docker:sync bugfix and fix CVE-2021-21284 2021-21285
1.fix execCommands leak in health-check
2.check containerd pid before kill it
3.fix CVE-2021-21284
4.fix CVE-2021-21285

Change-Id: I2fe1dd40281f1786ecc63ff19d416b113710e611
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2021-03-18 15:40:53 +08:00
DCCooper
0f204a4fd6 docker:remove go-md2man build require
Signed-off-by: DCCooper <1866858@gmail.com>
2021-02-09 18:51:03 +08:00
jingrui
af6293703d docker: sync bugfix
Change-Id: I4dc92059d90415199fcd143d75cc68cfdb67c430
Signed-off-by: jingrui <jingrui@huawei.com>
2021-01-19 14:03:29 +08:00
yangyanchao
4780a2ff0e docker:components:add config files for riscv
Signe:-off-by: yangyanchao <yangyanchao6@huawei.com>
2021-01-04 10:45:04 +08:00
f00231050
27493a1bf2 docker: fix registry not try hostname issue
reason: when mirror is matched, only matched mirror endpoint is added to endpoint list, but the hostname itself is not in the list, which is not compatible with the case of docker.io, docker.io will be appended to the last of the endpoint list.
2020-12-21 09:46:50 +08:00
liuzekun
294a810705 docker: sync patches from internal
Signed-off-by: liuzekun <liuzekun@huawei.com>
2020-11-28 09:37:25 +08:00
xiadanni
d6bf1f41cc spec: modify spec name
Signed-off-by: xiadanni <xiadanni1@huawei.com>
2020-11-09 16:40:06 +08:00