[docker] WARNING: Your kernel does not support swap limit capabilities. Limitation discarded. WARNING: No memory limit support WARNING: No swap limit support 에러 해결하기
docker 2019. 2. 18. 16:54데비안/우분투에서 다음과 같은 에러가 발생한다면 호스트의 설정을 변경해야 한다.
WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.
WARNING: No memory limit support
WARNING: No swap limit support
참고 자료는 다음과 같다.
(호스트 머신의 재시작을 잊지 말자!)
https://docs.docker.com/install/linux/linux-postinstall/
Your kernel does not support cgroup swap limit capabilities
On Ubuntu or Debian hosts, You may see messages similar to the following when working with an image.
WARNING: Your kernel does not support swap limit capabilities. Limitation discarded.
This warning does not occur on RPM-based systems, which enable these capabilities by default.
If you don’t need these capabilities, you can ignore the warning. You can enable these capabilities on Ubuntu or Debian by following these instructions. Memory and swap accounting incur an overhead of about 1% of the total available memory and a 10% overall performance degradation, even if Docker is not running.
Log into the Ubuntu or Debian host as a user with
sudo
privileges.Edit the
/etc/default/grub
file. Add or edit theGRUB_CMDLINE_LINUX
line to add the following two key-value pairs:GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
Save and close the file.
Update GRUB.
$ sudo update-grub
If your GRUB configuration file has incorrect syntax, an error occurs. In this case, repeat steps 2 and 3.
The changes take effect when the system is rebooted.
'docker' 카테고리의 다른 글
[docker-compose] 특정 컨테이너 재시작 하기 (0) | 2019.04.17 |
---|---|
[docker] 도커 메모리 관련 유의사항 (0) | 2019.03.21 |
[docker] jenkins - local time으로 빌드 시간 (0) | 2018.09.18 |
docker inspect 커맨드 (0) | 2018.09.14 |
[docker] docker의 기본 메모리와 메모리 설정 내용 (0) | 2018.09.13 |