-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can an arm64 server without Internet use it to run the docker image of AMD64? #161
Comments
You need to use https://dbhi.github.io/qus/ instead of qemu-user-static. Since you don't have Internet access you will need to provide all dependencies "manually", e.g. |
You |
Thank you very much!
I have successfully run docker image of x86 under the arm server, but there is no service in the running container. What should I do?
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月21日(星期二) 晚上8:38
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
You saved a x86_64 image and tried to load it on aarch64 host, thus wrong exec format.
You need to save the aarch64 image instead.
See https://stackoverflow.com/questions/60114854/pull-docker-image-for-different-architecture for few possible ways to do it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
What service ? |
After I run the image in the x86 environment, I can use PS, SS and other commands inside the container, and the image packaged application can also be started. However, after the arm platform is started, I can't use PS, SS and other commands inside the container。Help me analyze the reasons. Thank you very much for your help!
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午3:49
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
What service ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Without more information about the container and the errors (do you get any errors when executing |
1、error message:
/usr/bin/ps: error while loading shared libraries: libsystemd.so.0: ELF load command alignment not page-aligned
2、container:
[
{
"Id": "b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9",
"Created": "2021-12-20T09:26:38.715422384Z",
"Path": "/bin/bash",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 34475,
"ExitCode": 0,
"Error": "",
"StartedAt": "2021-12-20T09:26:39.349618564Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:9713cb833113ff8f40ed1861991b04ac8b8211b21dc45f23dc3741c9945c4dd9",
"ResolvConfPath": "/var/lib/docker/containers/b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9/hostname",
"HostsPath": "/var/lib/docker/containers/b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9/hosts",
"LogPath": "/var/lib/docker/containers/b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9/b919b2a20d990df1bcd31f0783ebf9acad8a4a92db32128d6c61ad3ce28013e9-json.log",
"Name": "/aclite-1.1.0.C10SPC100",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/usr/bin/qemu-x86_64-static:/usr/bin/qemu-x86_64-static",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog:/var/log",
"/opt/aclite-data/1.1.0.C10SPC100/logs/gateway:/opt/controller/gateway_service/log",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/gateway_service:/var/log/gateway_service",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/miniGate:/var/log/miniGate",
"/opt/aclite-data/1.1.0.C10SPC100/files:/opt/controller/fileserver_service/file/",
"/opt/aclite-data/1.1.0.C10SPC100/logs/aclite:/opt/controller/aclite_service/log",
"/opt/aclite-data/1.1.0.C10SPC100/logs/service_center:/opt/controller/service_center/logs",
"/opt/aclite-data/1.1.0.C10SPC100/dumps/aclite:/opt/controller/aclite_service/dump",
"/opt/aclite-data/1.1.0.C10SPC100/logs/fileserver:/opt/controller/fileserver_service/logs",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/aclite_service:/var/log/aclite_service",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/redis:/opt/controller/redis/redis/log",
"/opt/aclite-data/1.1.0.C10SPC100/logs/fileserver_varlog:/var/log/fileserver_service",
"/opt/aclite-data/1.1.0.C10SPC100/dumps/fileserver:/opt/controller/fileserver_service/dump",
"/opt/aclite-data/1.1.0.C10SPC100/dumps/gateway:/opt/controller/gateway_service/dump",
"/opt/aclite-data/1.1.0.C10SPC100/redisdata:/opt/controller/redis/redis/data",
"/opt/aclite-data/1.1.0.C10SPC100/dbdata:/opt/controller/zenith/commondb/data",
"/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/nginx:/var/log/nginx"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"10020/tcp": [
{
"HostIp": "",
"HostPort": "10020"
}
],
"10022/tcp": [
{
"HostIp": "",
"HostPort": "10022"
}
],
"10024/tcp": [
{
"HostIp": "",
"HostPort": "10024"
}
],
"18001/tcp": [
{
"HostIp": "",
"HostPort": "18001"
}
],
"18008/tcp": [
{
"HostIp": "",
"HostPort": "18008"
}
],
"18009/tcp": [
{
"HostIp": "",
"HostPort": "18009"
}
],
"18017/tcp": [
{
"HostIp": "",
"HostPort": "18017"
}
],
"18018/tcp": [
{
"HostIp": "",
"HostPort": "18018"
}
],
"18020/tcp": [
{
"HostIp": "",
"HostPort": "18020"
}
],
"18021/tcp": [
{
"HostIp": "",
"HostPort": "18021"
}
],
"18026/tcp": [
{
"HostIp": "",
"HostPort": "18026"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": true,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Capabilities": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": true,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"label=disable"
],
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Sysctls": {
"net.core.somaxconn": "1024"
},
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": null,
"ReadonlyPaths": null
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8b634f46b72b3402be0da900c0e60330008c14a8243539a75d7627c4f5c74e5d-init/diff:/var/lib/docker/overlay2/7d32d99cc2ad54921e27428c9496e6d75a06fe92320ee30585031454ec947e71/diff:/var/lib/docker/overlay2/c7ee905a30cc8f4c213c68ad7f56b11d23bb36b7b08e7f23daee24dbd768e912/diff:/var/lib/docker/overlay2/36edd9f1f63e47f3e533e2073d0f2c96ced428d7ec31813fb8bb45221e14ad5a/diff",
"MergedDir": "/var/lib/docker/overlay2/8b634f46b72b3402be0da900c0e60330008c14a8243539a75d7627c4f5c74e5d/merged",
"UpperDir": "/var/lib/docker/overlay2/8b634f46b72b3402be0da900c0e60330008c14a8243539a75d7627c4f5c74e5d/diff",
"WorkDir": "/var/lib/docker/overlay2/8b634f46b72b3402be0da900c0e60330008c14a8243539a75d7627c4f5c74e5d/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/fileserver_varlog",
"Destination": "/var/log/fileserver_service",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/redisdata",
"Destination": "/opt/controller/redis/redis/data",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/nginx",
"Destination": "/var/log/nginx",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/usr/bin/qemu-x86_64-static",
"Destination": "/usr/bin/qemu-x86_64-static",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/miniGate",
"Destination": "/var/log/miniGate",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/service_center",
"Destination": "/opt/controller/service_center/logs",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/fileserver",
"Destination": "/opt/controller/fileserver_service/logs",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/aclite_service",
"Destination": "/var/log/aclite_service",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/gateway_service",
"Destination": "/var/log/gateway_service",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/aclite",
"Destination": "/opt/controller/aclite_service/log",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/dumps/gateway",
"Destination": "/opt/controller/gateway_service/dump",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/files",
"Destination": "/opt/controller/fileserver_service/file",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/dumps/aclite",
"Destination": "/opt/controller/aclite_service/dump",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog/redis",
"Destination": "/opt/controller/redis/redis/log",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/dbdata",
"Destination": "/opt/controller/zenith/commondb/data",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/varlog",
"Destination": "/var/log",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/logs/gateway",
"Destination": "/opt/controller/gateway_service/log",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "bind",
"Source": "/opt/aclite-data/1.1.0.C10SPC100/dumps/fileserver",
"Destination": "/opt/controller/fileserver_service/dump",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "b919b2a20d99",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"10020/tcp": {},
"10022/tcp": {},
"10024/tcp": {},
"18001/tcp": {},
"18008/tcp": {},
"18009/tcp": {},
"18017/tcp": {},
"18018/tcp": {},
"18020/tcp": {},
"18021/tcp": {},
"18026/tcp": {},
"18029/tcp": {}
},
"Tty": true,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": null,
"Image": "aciot/aclite:1.1.0.C10SPC100",
"Volumes": null,
"WorkingDir": "/opt/controller",
"Entrypoint": [
"/bin/bash"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "31e1b8c5a21378dda784b092ef53f228a86ec0a87465940b85a3a57b982904e0",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"10020/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10020"
}
],
"10022/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10022"
}
],
"10024/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "10024"
}
],
"18001/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18001"
}
],
"18008/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18008"
}
],
"18009/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18009"
}
],
"18017/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18017"
}
],
"18018/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18018"
}
],
"18020/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18020"
}
],
"18021/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18021"
}
],
"18026/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "18026"
}
],
"18029/tcp": null
},
"SandboxKey": "/var/run/docker/netns/31e1b8c5a213",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "32087b53a634ab7c25edc7dfd4305fb5b6e6b2cc06342fec2c0a6028726573cd",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:03",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "92d37aa1496fc97ccca30e1ee6c955203203452989e312b41245527a050a13e9",
"EndpointID": "32087b53a634ab7c25edc7dfd4305fb5b6e6b2cc06342fec2c0a6028726573cd",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:03",
"DriverOpts": null
}
}
}
}
]
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午4:02
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
Without more information about the container and the errors (do you get any errors when executing ps ?!) we cannot help you more.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I have the feeling you try to run armv8 Docker container on armv7 hardware/host. |
I found that both the container and the host are armv8
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午4:15
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
I have the feeling you try to run armv8 Docker container on armv7 hardware/host.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Could you please paste the output of |
1、host:
uname -m:aarch64
lscpu:
架构: aarch64
CPU 运行模式: 64-bit
字节序: Little Endian
CPU: 8
在线 CPU 列表: 0-7
每个核的线程数: 1
每个座的核数: 1
座: 8
NUMA 节点: 1
厂商 ID: HiSilicon
型号: 0
型号名称: Kunpeng-920
步进: 0x1
CPU 最大 MHz: 2600.0000
CPU 最小 MHz: 2600.0000
BogoMIPS: 200.00
L1d 缓存: 512 KiB
L1i 缓存: 512 KiB
L2 缓存: 4 MiB
L3 缓存: 256 MiB
NUMA 节点0 CPU: 0-7
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; __user pointer sanitization
Vulnerability Spectre v2: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected
标记: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
2、container
uname -m:x86_64
lscpu:
Architecture: x86_64
CPU op-mode(s): 32-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 8
NUMA node(s): 1
Model: 0
Model name: ARMv8 CPU
CPU max MHz: 2600.0000
CPU min MHz: 2600.0000
BogoMIPS: 200.00
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
L3 cache: 32768K
NUMA node0 CPU(s): 0-7
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma dcpop asimddp asimdfhm
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午4:45
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
Could you please paste the output of lscpu and uname -m ?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I hope you understand that those |
The host is arm and the container is x86. The email just contains the information of the host and containe!
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午4:55
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
I hope you understand that those  s makes it real hard to find the meaningful text!
We talk about the armv8 host. Why uname -m returns x86_64 ?!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
OK! I guess to run it following my article. |
OK,I have submitted new questions,Thank you very much for your answers
…------------------ 原始邮件 ------------------
发件人: "multiarch/qemu-user-static" ***@***.***>;
发送时间: 2021年12月22日(星期三) 下午5:05
***@***.***>;
***@***.******@***.***>;
主题: Re: [multiarch/qemu-user-static] How can an arm64 server without Internet use it to run the docker image of AMD64? (Issue #161)
OK! I guess to run it you follow my article.
Please open a new issue at https://github.com/dbhi/qus/issues giving as much details as possible about the host, the container and the commands you use to start the container and the errors you face.
I think this issue could be closed since it is no more related to qemu-user-static
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Description:
I need to run an AMD64 docker image on an arm64 server. This server cannot access the network. What should I do? Ask for help. Thank you very much !
Environment:
Linux localhost.localdomain 4.19.90-23.8.v2101.ky10.aarch64 #1 SMP Mon May 17 17:07:38 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
docker:Docker version 19.03.9, build 9d98839
docker image:"Architecture": "amd64"
The text was updated successfully, but these errors were encountered: