Skip to content

Instantly share code, notes, and snippets.

@Zalgo2462
Created March 22, 2018 17:27
Show Gist options
  • Save Zalgo2462/1c20ed7c2b83db699090ebdd28c302d3 to your computer and use it in GitHub Desktop.
Save Zalgo2462/1c20ed7c2b83db699090ebdd28c302d3 to your computer and use it in GitHub Desktop.
centos-user:7
# docker build -t centos-user:7
FROM centos:7
RUN yum -y upgrade
RUN yum -y install git
RUN yum -y install sudo && \
useradd -m -s /bin/bash user && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user
USER user
WORKDIR /home/user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment