0

I use docker container on CentOS7 x86_64.

Docker container depends on the host system.

bash
$ arch
x86_64

The arch command shows the above host arch in the container.

I want to use the container as i686, so I write i686 in /etc/yum/vars/arch and /etc/yum/vars/basearch.

bash
$ cat /etc/yum/vars/arch
i686
$ yum install {package} # It will install i686 packages.

What is the difference?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.