我在docker-compose设置中运行官方的Redis镜像。
myredis:
image: redis
如何在映像上使用docker-compose运行redis-cli?
我尝试了以下方法,但连接不上:
docker-compose run myredis redis-cli
> Could not connect to Redis at 127.0.0.1:6379: Connection refuse
镜像的文档显示我应该运行:
docker run -it --rm \
--link some-redis:redis \
redis \
sh -c 'exec
我试图使用ddev exec在容器中使用bash做一些复杂的事情,但似乎无法让它工作。例如,ddev exec cd /var/tmp会产生一条大错误消息
Failed to execute command [cd /var/tmp]: Failed to run docker-compose [-f /Users/rfay/workspace/d8git/.ddev/docker-compose.yaml exec -T web cd /var/tmp], err='exit status 126', stdout='OCI runtime exec failed:
我工作的Ubuntu 17.2 64位和安装码头使用安装指南.当docker-compose up遇到问题时。
当fire命令显示错误时,如下所示:
data is up-to-date
db is up-to-date
Starting web
ERROR: for web Cannot start service web: oci runtime error: exec: "./entrypoint.sh": stat ./entrypoint.sh: no such file or directory
ERROR: Encountered errors while b
所以我通过docker-compose部署了django,postgress和nginx容器,我有一个问题,我似乎无法解决。 为了解决我的Django应用程序中的以下错误,我知道我必须运行Django迁移。 docker@postgres ERROR: relation "accounts_myprofile" does not exist 在尝试运行迁移时,我尝试了: docker-compose run web python manage.py makemigrations
docker-compose run web python manage.py migrate
我正在使用Firebase=false在.env文件中设置我的Firebase状态。如果是真的,一些代码会初始化firebase应用程序。当我尝试使用docker-compose up运行系统并运行一些函数时,它将返回错误The default Firebase app does not exist. Make sure to initialize the SDK by calling initialize_app(). 为了调试它,我必须在我的docker环境中检查firebase变量是否真的是假的。我试图运行docker exec <container> echo "
我有一个bash脚本,它位于docker-come.yaml呈现的目录之上。
bash脚本中有命令:
docker-compose exec ${service} /somescript_inside_container.sh
在执行这个bash脚本时,我得到:
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
Supported filenames: dock
我试图在linux上运行我的停靠容器。在构建过程中,我在运行以下命令后遇到了一个错误:
数独码头-合成-f码头-合成. sudo向上--构建
docker-compose显示了以下消息:
Step 10/19 : RUN dotnet restore "test/test.csproj"
---> Running in ea65364853f3
standard_init_linux.go:211: exec user process caused "exec format error"
ERROR: Service 'test' fai