상황 docker 설치 후 usermod로 사용자를 docker 그룹에 추가까지 완료 후 터미널 재접속까지 했으나 permission denied 발생 (설치 참고: https://blog.naver.com/occidere/221390946271) DEV-[occiderepi301:/home/occidere] docker ps -a Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json?all=1: dial unix /var/run/docker.sock: connec..
EC2 서버에서 도커 컴포즈를 설치한 후 실행시켰더니 다음과 같은 에러가 떴다. docker-compose : Unsupported config option for services service: 'platform' 도커 컴포즈를 설치할 때 sudo apt-get install docker-compose 로 설치해주었는데, 정식 레파지토리가 아니라 apt를 통해서 설치하면 위 같은 에러가 발생한다고 한다. 설치했던 것을 지워주고 정식 레포에서 다시 설치해주었다. 도커 레파지토리 에서 원하는 asset을 선택한 후 링크 주소를 복사한다. 터미널에서 다음의 명령어로 도커 컴포즈를 설치하고 권한을 바꿔준다. sudo curl -L 링크주소 -o /usr/local/bin/docker-compose sudo c..
linux에서 root 권한이 아닌 상태로 docker를 실행하면 권한 문제가 발생할 수 있다. [linux@localhost ]$ docker ps Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/json: dial unix /var/run/docker.sock: connect: permission denied 이런 경우 docker group에 해당 유저를 추가해주어야한다. 1. 보통은 docker group이 생겼을테지만, 만약 없으면 생성해준다. sudo gro..
TDD강의를 들으면서 Github Actions로 jest를 사용하는 CI 파이프라인 구축하던 중 에러가 발생하여 정리해보고자 작성한다. 'This usually means that there are asynchronous operations that weren't stopped in your tests. Consider running Jest with `-detectOpenHandles` to troubleshoot this issue. Error: Process completed with exit code 1. 로그가 무수히 길게 나오는데 슥슥 올라가다 보면 이런 문구가 있다. PASS test/unit/products.test.js FAIL test/integration/products.int.te..
1. 문제 상황 TDD 강의를 들으면서 jest를 이용하여 통합테스트 코드를 작성 후 진행하니 아래와 같은 메세지가 나왔다. A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them. Answer in English. "jest --detectOpenHandles" 명령어를 사용하여 원인이 되..