I use docker container on CentOS7 x86_64.

Docker container depends on the host system.

$ arch

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.

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

What is the difference?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.