Using images with generic architectures in Docker can generate incompatibilities with M1 Silicon processors.
We can use the Rosetta virtualization layer to solve this kind of problems.
Method 1: export variable.
If we are using the CLI directly, we can export the following variable beforehand in the shell:
|
|
Method 2: correct docker-compose.
If we are using docker-compose, we modify it according to the file format:
|
|
For example:
|
|
Method3: correct dockerfile:
Another option if what we use is a dockerfile:
|
|