Skip to content
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

Proper documenting of Env attribute for remote API #3622

Closed
parisk opened this issue Jan 16, 2014 · 3 comments
Closed

Proper documenting of Env attribute for remote API #3622

parisk opened this issue Jan 16, 2014 · 3 comments

Comments

@parisk
Copy link

parisk commented Jan 16, 2014

Hi,

I think that the Env variable of the remote API needs to be better documented. Basically, while I can set environment variables properly from the cli, I cannot get it working using the remote API.

I user the remote API v1.8 and I have tried sending the env variables in the following formats:

  1. string: "[MY_VAR=MY_VALUE]"
  2. JSON list: [MY_VAR=MY_VALUE]
  3. JSON dict: {"MY_VAR": "MY_VALUE"}

None of these formats seem to work. So what is the formal way of doing that? After this information comes out, I can make a pull request on the documentation, fixing that.

Thanks.

@parisk
Copy link
Author

parisk commented Jan 16, 2014

Never mind, there was an automated character escaping that was ruining my request, I will proceed with documenting this.

@SvenDowideit
Copy link
Contributor

@parisk cool, and thank you in advance :)

@kevinsimper
Copy link

The documentation still don't give any examples on how this works! :-/

https://docs.docker.com/reference/api/docker_remote_api_v1.20/#create-a-container

This should be reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants