Linux 기반의 운영체제는 (Ubuntu, CentOS) 일반계정으로 root 권한이 필요할 때 오류가 발생할 수 있다.
이를 해결하기 위해 /etc/sudoers 파일에 일반계정 권한 설정이 필요하다.
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
docker ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
CentOs 기준으로 위와 같은 양식으로 sudoers 파일이 구성되어 있다.
위 글과 같이 docker 에게 sudo 권한을 부여하였다.