我应该在哪里将.pem文件从容器化气流服务中通过SSH连接到EC2实例?
我在连接到Dockerized Puckel/Airflow服务的EC2实例时遇到了困难。我不知道在哪里保存PEM文件以供SSH连接抓取。如何使容器可用的PEM文件可用?
谢谢。
I am having trouble connecting to a EC2 instance from a dockerized puckel/Airflow service. I don't know where to save the pem file for the SSH connection to grab. How can I make the pem file avaialable for the containers?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
与任何其他文件一样 - 您可以在构建Docker映像时将PEM文件复制到容器中,或者以后通过从主机上安装文件夹。
例如:您可以将主机文件夹
/home/home/myuser/键
绑定到/root/键
。然后,在/root/keys
中,主机文件夹的内容将在Docker容器内访问。docker中的安装
As with any other file - you could copy the pem file to the container while building the docker image, or later by mounting a folder from the host.
For example: You could bind the host folder
/home/myuser/keys
to/root/keys
. Then the contents of your host's folder will be accessible inside the docker container in/root/keys
.Bind Mounts in Docker