Skip to content

Is it possible to run x86_64 and aarch64 containers at the same time? #631

Answered by abiosoft
wzxu asked this question in Q&A
Discussion options

You must be logged in to vote

You can run both at the same time if

  • Colima is running with the host's architecture. i.e. no x86_64 emulation on m1
  • You specify the --platform flag to docker run for cross architecture images.

Judging from your explanation, it appears you need to run Colima in emulation mode and that would not work. Except you would have multiple Colima profiles (and docker contexts) and toggle between them.

colima start # native
colima start --arch x86_64 intel # emulated

docker context use colima # switch to native context
docker context use colima-intel # switch to emulated

# you can also export DOCKER_HOST in your active shell
# socket path can be checked with `colima status`
export DOCKER_HOST=$HOME

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@wzxu
Comment options

@rfay
Comment options

@rayr007
Comment options

@wzxu
Comment options

Comment options

You must be logged in to vote
3 replies
@wzxu
Comment options

@wzxu
Comment options

@rfay
Comment options

Answer selected by wzxu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants