-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker-compose doesn't accept environment variables with dot symbol (".") #8862
Comments
See also #8507 |
Same problem. It's currently impossible to set a variable with an IP address in |
Related commit: If the variable name contains a dot in the env_file key file, this will cause an error in docker-compose 2.x. If the same variable is below environment key, it works. |
I have the same problem! docker-compose.yml version: '3.7'
services:
app:
build:
context: .
dockerfile: Dockerfile.development
env_file:
- environment.yml environment.yml fpm.global.process_control_timeout=5m docker-compose build app Results in: |
Same problem here, using a legacy beast that can't be changed. |
Docker compose all 2.x versions is affected. |
same problem |
I'm happy to open a PR for this, looks like someone just needs to add '.' to this switch case. |
@Serg675 did you manage to find a workaround for this? the godotenv repo doesn't accept any pull requests. |
@vivek-rao-1985 |
Docker-compose 2.6.0 is affected. |
Yes we know, we didn't had time to add this one to the latest release, will try to include it in the next one and will ping you when it will be available in the |
Hello,
The docker-compose (Docker Desktop for Windows) throws error and quits if environment variable contains dot symbol (".").
The error in "unexpected character "." in variable name near ..."
Don't know if it's new issue or not since haven't used docker-compose before.
Below is versioning information.
Client:
Cloud integration: 1.0.17
Version: 20.10.8
API version: 1.41
Go version: go1.16.6
Git commit: 3967b7d
Built: Fri Jul 30 19:58:50 2021
OS/Arch: windows/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.8
API version: 1.41 (minimum version 1.12)
Go version: go1.16.6
Git commit: 75249d8
Built: Fri Jul 30 19:52:31 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.9
GitCommit: e25210fe30a0a703442421b0f60afac609f950a3
runc:
Version: 1.0.1
GitCommit: v1.0.1-0-g4144b63
docker-init:
Version: 0.19.0
GitCommit: de40ad0
Docker Compose version v2.0.0
The text was updated successfully, but these errors were encountered: