我应该在哪里将.pem文件从容器化气流服务中通过SSH连接到EC2实例?

发布于 2025-01-30 11:19:07 字数 103 浏览 1 评论 0原文

我在连接到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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷鸟归林 2025-02-06 11:19:07

与任何其他文件一样 - 您可以在构建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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文