32位docker图像编译二进制显示为64位

我试图创build一个32位的泊坞窗图像,它有谷歌gRPC。

我已经创build了Dockerfile,扩展如下:

FROM i386/ubuntu:17.04 

我能够编译gRPC和Proto缓冲区,但是,当我尝试使用protoc时,我得到bash: /usr/local/bin/protoc: No such file or directory

当我运行file ,我看到该程序集被视为64位。

 file /usr/local/bin/protoc /usr/local/bin/protoc: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=e87bf6eb1c507bb7f65f3c7687df6a3b41b563be, stripped 

因此,我的问题是如何编写和构build一个实际上是32位的docker镜像。 当我在容器中运行uname -march时,我得到了x86_64 ,但是dpkg --print-architecture显示了i386所以看起来它实际上并不是32位映像。