TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you connect to your docker container in production?

1 点作者 mariocesar超过 5 年前
I have a service running in AWS Fargate and from time to time I have to run maintenance scripts, create users in a batch, fix data that doesn&#x27;t have interfaces yet.<p>What I do right now is to create a new container with an special command that runs an script, but is more common that something is just wrong, and all the process from test, update, test again could take solid 20min.<p>I&#x27;m always thinking if it&#x27;s a good idea to start an ssh server and open a session where I can run the commands in a shell and test faster.<p>How do you solve a problem like this? This are what I&#x27;m thinking as solutions but feels like a security risk, but I can&#x27;t see any other options.<p>1. Embed an interactive shell directly in the application. 2. Have an ssh server session open, to connect when needed.<p>Any ideas?

1 comment

rumanator超过 5 年前
If you are already using AWS perhaps you can take a look at AWS Lambda, that enable you to run one-off batch jobs without having to containerize any application.