profile
viewpoint

Ask questions[v2] Distribute binaries for alpine / musl libc

docker run -it --rm docker:latest sh
wget "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-linux-x86_64.zip" -O "awscliv2.zip"
# curl not installed
unzip awscliv2.zip
./aws/install
# sudo not install

Errors with:

/ # ./aws/install
./aws/install: line 78: /aws/dist/aws2: not found
You can now run: /usr/local/bin/aws2 --version
/ # aws2
sh: aws2: not found
aws/aws-cli

Answer questions bentolor

@blagerweij See the image below from the official Docker image for illustration.

The typical usage is:

  1. One (or your ci) starts a docker:dind instance and then
  2. Starts a separate docker:stable instance which is linked to the started docker:dind container
  3. You start executing docker commands inside the second container which redirects the comamnds via socket connection to docker daemon running inside the first docker:dind container.

Therefore: While it's true that the docker:dind instance eventually executes your Docker commands, your CLI frontend actually lives in a docker:stable instance. And that's the place where one i.e. needs to login into AWS ;-)

At least this is the usage pattern I'm aware of (i.e. on using Gitlab CI to build docker images). Maybe there are also direct docker:dind usage scenarios?

Usage of docker:stable vs. docker:didn

useful!

Related questions

An error occurred (KMS.NotFoundException) when calling the PutObject operation: Invalid keyId aws/s3 hot 3
ModuleNotFound Error: no module named 'botocore.vendored' hot 2
aws rds generate-db-auth-token creates invalid token when executed inside ECS container hot 1
aws s3 sync warning: Skipping file "." File does not exist. hot 1
credential_process hangs - aws-cli hot 1
aws s3 cp without recursive can produce a useless error message hot 1
download failed | aws s3 cp hot 1
Add progress bar UI for s3 copying - aws-cli hot 1
AWS CLI: Create Bucket - A conflicting conditional operation is currently in progress against this resource hot 1
aws sns add-permission: GetSubscriptionAttributes and SetSubscriptionAttributes are not available hot 1
get-domain-statistics-report Unable to find a dashboard - aws-cli hot 1
InvalidAccessKeyId using instance profile role hot 1
Access denied when uploading multipart that requires --sse-kms-key-id hot 1
aws cloudformation package fails with nested stack: "TemplateURL must be an Amazon S3 URL." hot 1
CP Command via pip throwing KeyError on basic copy hot 1
source:https://uonfu.com/
Github User Rank List