Skip to content

Mac ARM x64 image #133

@dizer

Description

@dizer

So when I try to build an image on M1 mac:

# Dockerfile
FROM wnameless/oracle-xe-11g-r2
ADD db/setup_oracle.sql /docker-entrypoint-initdb.d/

I have an error:

[+] Building 4.8s (7/7) FINISHED                                                          
 => [internal] load build definition from Dockerfile.oracle                          0.4s
 => => transferring dockerfile: 90B                                                  0.0s
 => [internal] load .dockerignore                                                    0.5s
 => => transferring context: 35B                                                     0.0s
 => [internal] load metadata for docker.io/wnameless/oracle-xe-11g-r2:latest         3.4s
 => [internal] load build context                                                    0.3s
 => => transferring context: 63B                                                     0.0s
 => [1/2] FROM docker.io/wnameless/oracle-xe-11g-r2@sha256:e8cfa3733a2c11b415fb94a9  0.0s
 => CACHED [2/2] ADD db/setup_oracle.sql /docker-entrypoint-initdb.d/                0.0s
 => exporting to image                                                               0.3s
 => => exporting layers                                                              0.0s
 => => writing image sha256:ea1a4b02ed8c544b17b99efbc5ea90887627bc4c0c066792dd1e5b7  0.0s
 => => naming to docker.io/library/oracle                                            0.0s
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Starting Oracle Net Listener.
Starting Oracle Database 11g Express Edition instance.
/usr/sbin/startup.sh: running /docker-entrypoint-initdb.d/setup_oracle.sql
SQL*Plus: Release 11.2.0.2.0 Production on Mon Jan 11 08:26:59 2021
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
ERROR:
ORA-12547: TNS:lost contact
Enter user-name: Enter password: 
ERROR:
ORA-12547: TNS:lost contact

Probably the problem is WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested. Any chance to make it works on M1 Macs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions