问题
Until now I've been creating and deploying Docker container onto AWS using:
docker-machine create --driver amazonec2 flask_app
and it worked.
I don't know what has happened but now it just creates instance locally but
it won't push it on AWS.
What might be the problem ? It's leaving me perplexed.
AWS screenshot:
Local docker machine screenshot:
aws configure list:
回答1:
I would start with the basics and make sure you are able to interact with AWS within your CLI environment and see if that works first. Next, I would try to see if there are anything extra indents in the credentials files as to why it's not working, and try to run the command with the access key and secret key in the command line like the example:
:docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws-sandbox
来源:https://stackoverflow.com/questions/57782594/docker-machine-create-wont-push-instance-onto-aws