
[英]Docker 'backup' process container not seeing Database container postgres
我有一个简单的 docker-compose.yml 和关联的 Dockerfile,它们为 nginx-uvicorn-django-postgres 堆栈提供了一个简单的开发和生产环境。 我想添加一个可选的“备份”容器,它只运行 cron 以定期连接到“postgres”容器。 django ...
[英]Docker 'backup' process container not seeing Database container postgres
我有一个简单的 docker-compose.yml 和关联的 Dockerfile,它们为 nginx-uvicorn-django-postgres 堆栈提供了一个简单的开发和生产环境。 我想添加一个可选的“备份”容器,它只运行 cron 以定期连接到“postgres”容器。 django ...
[英]how to install a specific version of a debian package
我正在使用 Trivy 进行容器扫描。 它告诉我存在漏洞,我需要安装 vrsion 4.16.0-2+deb11u1 当我更新我的 docker 以安装该版本时,我仍然遇到错误。 Dockerfile 我收到这个错误 E: 无法定位 package libtasn1 ...
[英]Applying environment variables to JBoss Bootable Jar in OpenShift/Docker?
我有一个应用程序,我正在 Docker 中测试为 JBoss 可启动 jar。dockerfile 将 jar 添加到容器中,然后运行它。 我想将数据库凭据作为环境变量进行测试,然后作为 OpenShift 中的秘密。 我尝试添加 jar 并在运行 CMD java -jar myapp.jar ...
[英]Changing ownership of a directory/volume using linux in Dockerfile
我正在创建一个 Dockerfile,它构建了 2 个名为 /data/ 和 /artifacts/ 的卷以及一个名为“omnibo”的用户,然后为该用户分配这两个卷的所有权/权限,我尝试使用 chown 命令,但在检查之后卷的权限/所有权分配给 root 用户。 这是我的 Dockerfile 脚 ...
[英]How to specify external volume\folder to store inner Docker's file system (including system files and folders)
假设我有一个 docker 容器,里面有 ubuntu,我想将整个 docker 容器的文件系统存储在某个外部驱动器中(我也使用 ubuntu)并与其他人共享这个驱动器,这样这个人就会得到内部的“副本”我的 docker 容器的 state。 这可能吗? ...
[英]Unable to start more than docker containers (Ubuntu vServer)
我目前正在拼命寻求帮助。 我正在尝试使用 docker 容器启动并运行我的服务器,但似乎我遇到了困难。 我租了一个 vServer(4 核,8 GB RAM),我正在尝试让一切正常运行。 我的想法的简要概述: Traefik 作为反向代理来分发我的应用程序用于安全和 traefik 中间件的 C ...
[英]DataSourceBeanCreationException: Failed to determine a suitable driver class. How to establish connection to the mongoDB from spring?
我尝试用 mongoDB 实现 spring-boot 项目。 mongoDB 未在本地安装 - 我使用 docker 图像来完成此任务。 所以: docker run -d --name mongodb -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_I ...
[英]Docker on Heroku, dependencies not saved in image?
我有一个 Dockerfile 安装 Julia 和一些依赖项,然后调用脚本。 脚本的第一行是应该安装的“使用 JSServe”。 这在本地非常有效。 但是在远程服务器(Heroku)上,我收到以下错误: 我不明白为什么...应该安装 JSServe - Docker build 在本地运行。 所 ...
[英]Dash python application and firewalls
是否可以创建 Dash python 应用程序的 docker 图像,其中所有依赖项都在 docker 图像中,以便不需要打开防火墙端口? ...
[英]Create a Docker container for Machine Learning
我不是 Docker 专家,我正在尝试为机器学习项目创建一个容器。 这主要是出于学术目的,因为我正在研究机器学习。 我写了一个 dockerfile(和一个 devcontainer.json 文件来在 vscode 中打开容器),它运行良好,直到我添加了构建 tensorflow 的行。我发现了三 ...
[英]failed to shutdown container in docker:
当我尝试使用命令 docker build 构建图像时,我收到此错误我正在使用 windows docker 桌面命令“/bin/sh -c yarn install --production”返回了一个非零代码:4294967295:关闭容器失败:容器 1842716825b498d7be9ed ...
[英]How can I resolve "unexpected EOF" error when pulling docker image
我在 MacOS Ventura 13.1 上有 Docker Desktop 4.16.2 (95914),据我所知我没有连接到任何代理。 我已经通过 docker 桌面对 docker 集线器进行了身份验证,并尝试通过运行“docker build.”来拉取 python 基本映像,在 Dock ...
[英]What is the problem when reciving MSB1001: Unkown switch, when trying to publishing C# application?
我正在尝试将我的 web API 与 docker 对接,我遇到了错误 MSB1001:未知开关。 更多详情可参考cmd提示图片有谁知道这意味着什么,我试图在 StackOverflow 的 GitHub 讨论和帖子中对此进行跟进。 我的 Dockerfile: 我的文件目录 ...
[英]Jupyterhub (TLJH): Failure setting up Development Environment: "Failed to start jupyterhub.service."
自上周以来,我无法按照此处所述设置 TLJH 开发环境: https://tljh.jupyter.org/en/latest/contributing/dev-setup.html 。 直到 2023 年 1 月 23 日,该过程进行得很顺利,但在上周五(1 月 27 日)重建镜像后,在容器中运 ...
[英]I can't connect a nodejs app to a redis server using docker
早上好家伙。 我在将一个容器中的 nodejs 应用程序连接到另一个包含 redis 服务器的容器时遇到问题。 在我的本地机器上,我可以毫无问题地将应用程序连接到这个 redis 容器。 但是,当尝试在容器中上传此应用程序时,会返回超时错误。 我是 docker 的新手,我不明白为什么我可以在我机器 ...
[英]AWS lambda stuck importing library
我正在尝试将我的 ECR 映像部署到 aws lambda。该映像在本地运行良好,但在 aws 上,导入此库https://github.com/jianfch/stable-ts时卡住了。 第一条语句已打印,但在导入时卡住了,第二条语句直到超时才打印出来。 Docker 档案: 在 requir ...
[英]error while attempting to deploy Dockered .net core application to Azure Container Registry
伙计们,以前可能有人问过这个问题,我花了一些时间试图寻找可能的根本原因/解决方案,但没有找到足够相似的东西。 目标:我希望将 Dockerized.Net Core Web App 默认模板发布到 Azure Container Registry。 我已经使用 Visual Studio 2022 ...
[英]Unable to build docker container on synology, as synology uses 7z not unzip
我为自己设置了一个 docker 小项目,并认为尝试让 azerothcore 在我的 synology 上运行可能会很有趣。 我已经克隆了存储库,但无法运行 acore.sh 脚本来构建 docker 容器,因为 synology 使用 7zip,并且 acore.sh 抛出错误,因为它无法解压缩 ...
[英]Downloaded file inside dockerfile missing after build
我正在尝试对我的 php 应用程序进行 docker 化,这是我的第一次尝试。 Dockerfile。 docker-compose.ymlversion: '3' services: ujian: image: liso/ujian-dockerize container_ ...
[英]PHP Fatal error on CI/CD run php artisan test
我将docker-compose与 laravel 和postgresql一起使用,并且在本地系统中一切正常。 问题出在 CI/CD 中。 我一遍又一遍地更改了 CI/CD yml 文件,但我被卡住了! 持续集成/持续集成name: CI/CD on: pull_request: br ...