Skip to content
This repository has been archived by the owner on Apr 27, 2018. It is now read-only.

can't install sudo #10

Open
bryanlarsen opened this issue Apr 1, 2015 · 3 comments
Open

can't install sudo #10

bryanlarsen opened this issue Apr 1, 2015 · 3 comments

Comments

@bryanlarsen
Copy link

Your Dockerfile doesn't install sudo, but it does create a sudoers file. This means that a subsequent apt-get install sudo will fail, even if installed with --assume-no.

@kriswill
Copy link
Contributor

kriswill commented Apr 1, 2015

I haven't tried it, kind of busy right now, but can't you do:

USER root
RUN apt-get install -y --no-install-recommends sudo

to install sudo? also, why not just do USER root to do whatever RUN apt-get you need, and switch back to USER sane to start your process?

@bryanlarsen
Copy link
Author

no, that conflicts on /etc/sudoers, and neither -y or --assume-no will get past it. --force-yes probably would, but that's not a good idea.

And I want sudo when I'm doing docker exec bash, not in my Dockerfile.

@kriswill
Copy link
Contributor

kriswill commented Apr 1, 2015

@Globegitter should we install sudo? I'm not sure it's wise, or a reasonable default, but I can empathize with the desire to bash into your container and sudo install software.

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

No branches or pull requests

2 participants