Created
January 27, 2017 06:09
-
-
Save iganari/621ecb2cf93e700bac5eb21a802636d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
MAINTAINER iganari <iganari@qiita.com> | |
# apt update | |
RUN apt-get update | |
RUN apt-get install -y sudo | |
# add sudo user | |
RUN groupadd -g 1000 developer && \ | |
useradd -g developer -G sudo -m -s /bin/bash iganari && \ | |
echo 'iganari:hogehoge' | chpasswd | |
RUN echo 'Defaults visiblepw' >> /etc/sudoers | |
RUN echo 'iganari ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers | |
USER iganari |
Author
iganari
commented
Jan 27, 2017
- 実行コマンド
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment