% aws --version
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2':
No such file or directory
If you have installed AWS CLI on the Ubuntu docker image on your M1/M2 Mac and are trying to run the aws commands and you get the above error, then the reason could be that the underlying Ubuntu image will be an ARM one and not x86-64 one.
Solution 1:Download the AWS CLI2 for ARM Linux and get it installed.
Download awscli (AWS LINK: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html$ curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
Solution 2:
While running your docker image for Ubuntu set the --platform option as linux/x86_64
|CBS|BASH|% docker run --platform linux/x86_64 ubuntu
Fix - Docker Ubuntu Could not open linux-x86-64-so.2
More Posts related to Docker,
- How to docker remove a container when it exits
- Install Python on Alpine Linux - Docker
- How to Rename Docker Image with none TAG and REPOSITORY?
- Remove all stopped containers in Docker using prune command
- [Fix] Docker Error response from daemon: manifest for :latest not found: manifest unknown
- [fix] Error response from daemon: conflict unable to remove repository reference ubuntu container is using its referenced image
- [Docker] Install Python3 on Alpine Linux
- Unable to find image docker latest locally
- How to Stop/Cancel/kill docker image pull
- How to know the Docker Engine Version
- [fix] Docker: OCI runtime exec failed unable to start container process
- [Solution] Alpine Docker apt-get: not found
- Install and Run Cassandra on Docker Desktop
- Install node on Alpine Linux Docker
- How to Copy files from Docker Container to Host System
- Install the minimal Linux on Docker (only 5 mb Alpine Linux)
- How to stop and start a docker container
- Docker - Error response from daemon: You cannot remove a running container
- Open Docker Desktop from macOS Terminal
- How to check installed docker version command
- How to know the Docker Sandbox ID of a Container Network?
- [fix] docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory.
- [Docker] Install Git on Alpine Linux
- Docker MySQL Compose File with Volume Example
- [fix] Docker: Alpine Linux - /bin/sh: bash: not found
More Posts:
- Java 8 Predicate Functional Interface Examples - Java
- Maven Eclipse (M2e) No archetypes currently available - Java
- Android Studio setup was canceled - How to resume - Android-Studio
- How to download Microsoft Visual Studio for M1/M2 Mac - MacOS
- Fix: Error: Cannot find module /node-examples/init - JavaScript
- How to retrieve all SharePoint Online List Items using Rest API - SharePoint
- Parse XML file in Java using DOM Parser - Java
- Fix: java.lang.UnsupportedOperationException Java Collections (List, Set, Map) - Java