반응형

빨간색 에러들 34

[docker] docker system purne

도커를 사용하다 보면 뭔가 느려지거나 무거워진? 그런 오류가 있을 수 있다. 삭제를 아무리해도 캐시 등의 정보를 제거해줄 필요가 있다. 아래의 커맨드를 필자는 자주 사용한다. 1 2 3 4 5 6 7 8 9 10 11 12 13 //도커 실행 종료후 삭제 docker run --rm image_name //중지된 컨테이너 사용하지 않는 이미지 전부 삭제 docker system prune -a // 캐시 없이 빌드 docker build --no-cache -t u12_core -f u12_core . //docker 오브젝트 전부 삭제 docker system prune --volumes Colored by Color Scripter cs https://docs.docker.com/engine/refe..

빨간색 에러들 2021.09.27

[ubuntu]] echo 3 > /proc/sys/vm/drop_caches" - Permission denied as root

Ubuntu에서 메모리가 터지는거 같아 메모리 캐시를 삭제해보고자 했다. 메모리캐시를 지우는 방법은 3가지 정도가 있는데 싹다 많은걸 지워버렸다. 1. Clear PageCache only. # echo 1 > /proc/sys/vm/drop_caches 2. Clear dentries and inodes. # echo 2 > /proc/sys/vm/drop_caches 3. Clear PageCache, dentries and inodes. # echo 3 > /proc/sys/vm/drop_caches 하지만, 허가 거부 (Permissuib denied as root) 에러가 발생할 수 있는데 이를 sudo 명령어를 사용해도 적용되지 않는 문제가 있다. 그래서 계정을 관리자로 변경하여 해당 명령어들..

빨간색 에러들 2021.09.13

[Git worktree] error: Cannot delete branch 'worktree' checked out at '../worktree'

git 으로 형상관리를 하면서 worktree를 사용한적이 많을 것이다. 모든 작업이 끝난 워크트리를 삭제하는 경우가 많다. 그렇게 보통 워크트리를 remove나 delete 명령어를 사용해 지운다. https://stackoverflow.com/questions/44109234/how-to-delete-a-git-working-tree-branch-when-its-working-directory-has-been-remo How to delete a git working tree branch when its working directory has been removed? I've removed its working directory, because this git working tree is no lon..

빨간색 에러들 2021.09.13

[Docker] VS Code Error: connect EACCES /var/run/docker.sock

vscode에 있는 market place의 Docker를 사용하면 편집기로 편리하게 docker의 상태를 관리하고 사용할수 있다. Ububtu에서도 vscode를 설치하여 사용할 수 있다. 그런데 간혹 vscode의 docker 창에서 이같은 메세지를 확인할 수 있다. https://github.com/microsoft/vscode-docker/issues/1582 Failed to connect. Is Docker installed and running? · Issue #1582 · microsoft/vscode-docker I am having trouble connecting to the Docker viewer on the left hand side of the screen. When I rem..

빨간색 에러들 2021.09.08
반응형