oracle / docker-images

Official source of container configurations, images, and examples for Oracle products and projects
https://developer.oracle.com/use-cases/#containers
Universal Permissive License v1.0
6.51k stars 5.41k forks source link

arm64 container fails to start #2660

Closed zergio158 closed 1 year ago

zergio158 commented 1 year ago

I created arm64 image using ./buildContainerImage.sh -v 19.3.0 -t my-docker-repo/oracle-19c:19.3.0-ee-arm64 -e command according to the instructions introduced in https://github.com/oracle/docker-images/pull/2659 but the container fails to start throwing the following error

[+] Running 0/1
 ⠼ Container oracle  Starting                                                                                                                                                                                                           0.4s 
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "exec": executable file not found in $PATH: unknown

I use the following docker-compose file

services:
  oracle:
    image: my-docker-repo/oracle-19c:19.3.0-ee-arm64
    environment:
      - ORACLE_PWD=Admin123
    ports:
      - 1521:1521

Docker Desktop v4.21.1

What am I missing?

Thanks

yunus-qureshi commented 1 year ago

@SergiiTsymbal where are you trying this? Can you paste the output of docker info.

jackra1n commented 1 year ago

Hi I have the same problem but its not on arm64 We have a CI pipeline that creates a oracle DB and this night it started failing with:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "exec": executable file not found in $PATH: unknown.

We build versions 12, 19 and 21 and it runs fine with 12 but fails at 19. To me it looks like its the recent change that causes this problem: #2659 -> Dockerfile:144

yunus-qureshi commented 1 year ago

Ok I think this was caused while trying to fix a lint issue.

@aditya059 is raising a PR to fix this asap

zergio158 commented 1 year ago

@SergiiTsymbal where are you trying this? Can you paste the output of docker info.

@yunus-qureshi A bit late, but below is my docker info output. The change in the PR fixes the problem for me. Thank you!

Client:
 Version:    24.0.2
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.11.0
    Path:     /Users/P2826360/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.19.1
    Path:     /Users/P2826360/.docker/cli-plugins/docker-compose
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     /Users/P2826360/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.20
    Path:     /Users/P2826360/.docker/cli-plugins/docker-extension
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.6
    Path:     /Users/P2826360/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/P2826360/.docker/cli-plugins/docker-sbom
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     /Users/P2826360/.docker/cli-plugins/docker-scan
  scout: Command line tool for Docker Scout (Docker Inc.)
    Version:  0.16.1
    Path:     /Users/P2826360/.docker/cli-plugins/docker-scout

Server:
 Containers: 24
  Running: 2
  Paused: 0
  Stopped: 22
 Images: 346
 Server Version: 24.0.2
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
 runc version: v1.1.7-0-g860f061
 init version: de40ad0
 Security Options:
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.49-linuxkit-pr
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 5
 Total Memory: 9.718GiB
 Name: docker-desktop
 ID: a17d1728-8b69-43e9-b523-d132281ee15c
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false
aditya059 commented 1 year ago

Hi @jackra1n The issue is fixed. You can try again. Closing this issue. You can reopen if you still face any error.