Skip to content

point out that ENV DEBIAN_FRONTEND will persist, so its not recommended - #4035

Merged
metalivedev merged 1 commit into
moby:masterfrom
SvenDowideit:dont-env-debian-frontend
Feb 11, 2014
Merged

metalivedev merged 1 commit into
moby:masterfrom
SvenDowideit:dont-env-debian-frontend

Conversation

@SvenDowideit

Copy link
Copy Markdown
Contributor

Docker-DCO-1.1-Signed-off-by: Sven Dowideit [email protected] (github: SvenDowideit)

for #4032

@jamtur01

Copy link
Copy Markdown
Contributor

This feels like a very specific implementation example. I'd add some context around it and then use this specific environment variable as an example.

@tianon

tianon commented Feb 10, 2014

Copy link
Copy Markdown
Member

Indeed, +1 to @jamtur01. I think we could even go further and purge this environment variable from all our docs examples, since all it does is silence some otherwise harmless warnings.

@creack

creack commented Feb 10, 2014

Copy link
Copy Markdown
Contributor

@tianon The non interactive mode is important and it is not harmless to remove it. You have plenty of packages that require a TTY for installation in order to prompt things to the user. It can prevent a package from being installable.

@tianon

tianon commented Feb 10, 2014

Copy link
Copy Markdown
Member

@creack got an example package that fails? :)

@metalivedev

Copy link
Copy Markdown
Contributor

There are probably better examples, but I had a heck of a time getting Django/manage.py to configure automagically without user input (example).
Not a good example. The user in this case is internal to Django/database, not a system user, so the problem is not with apt-get

@metalivedev

Copy link
Copy Markdown
Contributor

Doc format LGTM, but the information does seem pretty specialized. It seems like if you did docker run -i -t the worst that would happen is that apt-get install would complete silently. They can override it with run -e and they can learn about it in docker inspect. It seems like there are a zillion configuration/tool things that people could get stung by.

Did this problem come up in a specific context? I don't see it in any of our documentation examples.

@SvenDowideit

Copy link
Copy Markdown
Contributor Author

@metalivedev yeah - its because I used it in #4034 . I'm trying to start writing down some of the best and worst practices, and this is one obvious thing I've seen other people's Dockerfiles do.

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <[email protected]> (github: SvenDowideit)
@SvenDowideit

Copy link
Copy Markdown
Contributor Author

its still a specific thing, but I've added a little more info and tones it down. Perhaps we should collect this information elsewhere, like in the documentation at https://index.docker.io/_/debian/

@metalivedev

Copy link
Copy Markdown
Contributor

I think the information is valuable, so I'll merge it :-) Grammarians can suggest changes later, and if we start getting cluttered with best practices like these, then we can break them out to their own doc, maybe per Installation.

metalivedev added a commit that referenced this pull request Feb 11, 2014
point out that ENV DEBIAN_FRONTEND will persist, so its not recommended
@metalivedev
metalivedev merged commit 9176b6f into moby:master Feb 11, 2014
@jamtur01

Copy link
Copy Markdown
Contributor

We do have an FAQ we could add this too.

@SvenDowideit
SvenDowideit deleted the dont-env-debian-frontend branch March 14, 2014 01:27
igayoso added a commit to docker-archive/tutum-riak that referenced this pull request Nov 6, 2014
@ohadschn

Copy link
Copy Markdown
Contributor

Perhaps with the advent of the ARG directive, it would now be beneficial to suggest using it in favor of RUN <key>=<value> <command> where appropriate (ENV DEBIAN_FRONTEND seems to fit the bill).

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

Successfully merging this pull request may close these issues.

6 participants