没有找到docker-compose,我无法通过apt安装它。如何解决这个问题?
$ docker-compose
bash: /usr/local/bin/docker-compose: No such file or directory
$ sudo apt install docker-compose
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-compose is already the newest version (1.
我有两个容器,一个用于前端应用程序(用Sveltekit构建),另一个用于后端应用程序(Laravel,Nginx,MySQL)。
我试图从前端访问我的后端应用程序,但是我得到了以下错误:
Access to XMLHttpRequest at 'http://127.0.0.1:8000/api/auth/login' from origin
'http://localhost:8080' has been blocked by CORS policy: Response to preflight request
doesn't pass acce
我正在尝试运行docker-compose,但出现错误:
eric@pop-os:~/Documentos/web$ docker-compose up Postgres
bash: /home/eric/.local/bin/docker-compose: Arquivo ou diretório inexistente
当我运行哪个docker-compose:
eric@pop-os:~/Documentos//web$ which docker-compose
/home/eric/.pyenv/shims/docker-compose
是否可以在Linux Pop Os上将路径更改为
我有一个docker组合文件,它可以很好地处理这些命令:
docker-compose up
docker-compose exec web /bin/bash
我遇到的问题是,当我想用--service-ports启动容器时,我不能再用docker-compose连接到容器。
docker-compose run --service-ports web
docker-compose exec web /bin/bash
ERROR: No container found for web_1
我也试过了:
docker-compose run --service-ports --name co
我们试图在远程主机上构建和运行docker-compose项目。我尝试使用:
docker-compose -H 'ssh://remote_address' up --build
并得到了
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
所以我们尝试了:
docker-compose -H 'ssh://remote_address' build
docker-compose -H 'ssh://remot
升级我的停靠桌面后,在运行docker-compose up时会出现一个错误。我通常的设置包括使用docker-compose命令控制的微服务。当我运行docker-compose up时,所有的容器都启动了。更新我的停靠桌面后,我得到:
Can't separate key from value
在运行docker-compose up时。我该怎么解决这个问题?
我运行'docker version',它提供了: > docker version
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40 正如它所说的,客户端API版本是1.40。 但是当我尝试运行docker-compose命令时,我得到的错误是: > docker-compose up
ERROR: client version 1.22 is too old. Minimum supported API version is 1.24,
我用这里的说明安装了码头,从码头枢纽下载。
https://docs.docker.com/docker-for-mac/install/
但是当我运行docker-compose时,我会得到这个错误
pyenv: docker-compose: command not found
The `docker-compose' command exists in these Python versions:
3.6.5/envs/myenv
此外,在/Users下还可以使用docker-组合。
which docker-compose
/Users/<username>/.p