docker-machine create不会将实例推送到AWS [英] docker-machine create won't push instance onto AWS

查看:89
本文介绍了docker-machine create不会将实例推送到AWS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

直到现在,我一直在使用以下方法创建并将Docker容器部署到AWS上: docker-machine create --driver amazonec2 flask_app,它起作用了. 我不知道发生了什么,但是现在它只是在本地创建实例,但是 它不会在AWS上推送它.

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屏幕截图:

本地docker计算机屏幕截图:

aws配置列表:

推荐答案

我将从基础知识入手,并确保您能够在CLI环境中与AWS交互,然后看看它是否首先起作用.接下来,我将尝试查看凭据文件中是否有任何其他缩进,以说明为什么它不起作用,并尝试使用命令行中的访问密钥和秘密密钥来运行命令,例如:

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

:docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C******* aws-sandbox

这篇关于docker-machine create不会将实例推送到AWS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆