/etc/sudoers
에 쓰기 권한 추가/etc/sudoers
에 쓰기 권한 제거Ubuntu
RUN apt-get update && apt-get install -y sudo
RUN chmod +w /etc/sudoers
RUN echo 'user ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers
RUN chmod -w /etc/sudoers
참고
- 도커이미지 빌드 : $ docker build -f Dockerfile -t image:tag .
- 도커이미지 푸시 : $ docker push image:tag