docker 版本不同导致镜像权限受限 clone3-workaround

创建日期: 2024-09-09 15:15 | 作者: 风波 | 浏览次数: 14 | 分类: Docker

项目地址:https://github.com/AkihiroSuda/clone3-workaround

使用方式:

Mount or copy clone3-workaround.x86_64 binary to the container as /clone3-workaround, and run /clone3-workaround COMMAND [ARGUMENTS...] to run the command.

$ docker run -it --rm -v $(pwd)/clone3-workaround:/clone3-workaround ubuntu:21.10 /clone3-workaround bash
root@490fd2f29a88:/# apt-get update
Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [90.7 kB]
...
Fetched 19.4 MB in 6s (2996 kB/s)
Reading package lists... Done

root@490fd2f29a88:/# apt-get install -y hello
Reading package lists... Done
...
Unpacking hello (2.10-2ubuntu3) ...
Setting up hello (2.10-2ubuntu3) ...
$ docker run -it --rm -v $(pwd)/clone3-workaround:/clone3-workaround fedora:35 /clone3-workaround bash
[root@c699df1e7bd4 /]# dnf install -y hello
Fedora 35 - x86_64                                                                                                                                                                                 6.5 MB/s |  61 MB     00:09
...
Installed:
  hello-2.10-6.fc35.x86_64                                                                                          info-6.8-2.fc35.x86_64

Complete!
14 浏览
0 评论