일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 티스토리챌린지
- Multi-Resolution Networks for Semantic Segmentation in Whole Slide Images
- 도커
- docker attach
- 히비스서커스
- vscode
- ssh
- HookNet
- docker
- CellPin
- 백신후원
- 기초확률론
- 프로그래머스
- IVI
- aiffel exploration
- 사회조사분석사2급
- AIFFEL
- cocre
- numpy
- 코크리
- GIT
- logistic regression
- docker exec
- WSSS
- airflow
- Pull Request
- 오블완
- Jupyter notebook
- cs231n
- Decision Boundary
- Today
- Total
목록Programming/Docker (8)
히비스서커스의 블로그

상황 다음과 같은 dockerfile을 띄우는 도중 다음과 같은 에러가 발생하였다. FROM apache-airflow:2.5.1 RUN apt-get install update (생략)... 에러 List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Not a directory) 원인 'apt-get install update'를 실행할 user 설정이 제대로 안되어 있기 때문이다. 따라서, user를 root로 지정해주면 해결이 가능하다. 해결 FROM apache-airflow:2.5.1 ROOT user RUN apt-get install update (생략)... dockerfile에 ROOT user를 추가한다.

마운트 지점을 변경한 후 도커 컨테이너를 띄우려고 하니 다음과 같은 에러가 발생하였다. docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:385: applying cgroup configuration for process caused: no cgroup mount found in mountinfo: unknown. mount 정보에서 cgroup mount를 찾을 수 없다는 말인 듯 하다. 첫번째 해결방안은 돔돔이님 블로그를 참조하여 해결하였다. cgroup을 mount 해주면 해결이 된다. https://d..

다른 서버로 현재 도커 컨테이너 상태 그대로 옮겨야 할 일이 생겼다. 이때 활용하기 좋은 방법으로 현재 container상태 그대로 image로 저장하는 명령어 docker commit과 image를 다른 서버나 pc로 옮길 수 있는 docker push를 정리해보았다. docker commit dockercommit(현재contianer이름)(저장할이미지명)예시 docker commit hibiscircus gotjd709/hibiscircus:latest docker push 1) 먼저 도커 허브에 계정을 만든다. https://hub.docker.com/ Docker Hub Container Image Library | App Containerization We and thir..

nvidia docker 설치하는 방법은 아래의 공식 링크를 확인 https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html Installation Guide — NVIDIA Cloud Native Technologies documentation On RHEL 7, install the nvidia-container-toolkit package (and dependencies) after updating the package listing: Restart the Docker daemon to complete the installation after setting the default runtime: Note De..

도커 명령어를 간단한 입력하였는데 다음과 같은 에러가 나왔다. 실행한 명령어 dockerimages마주친에러CannotconnecttotheDockerdaemonatunix:///var/run/docker.sock.Isthedockerdaemonrunning?이를해결하기위해docker서비스실행명렁어를입력하자에러가발생하였다.실행한명령어 systemctl start docker 마주친 에러 Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for det..

ubuntu os에서 docker 완전히 지우고 재설치하는 방법은 아래의 글의 방법 가장 효과적이었다. https://askubuntu.com/questions/935569/how-to-completely-uninstall-docker How to completely uninstall docker I followed the uninstall instructions here. Then I ran these commands: sudo apt-get purge docker-engine sudo apt-get autoremove --purge docker-engine rm -rf /var/lib/docker So after I did all thi... askubuntu.com 도커 엔진 삭제하기 # sudo ..

도커로 생성한 컨테이너에 들어가기 위한 방법은 attach와 exec를 활용한 방법이 있다. 이들의 차이가 무엇이고 만약 도커로 주피터노트북을 백그라운드로 실행한 뒤 동일한 컨테이너에 bin/bash로 진입하고 싶다면 어떤 것을 사용해야 하는지 살펴보자. attach attach는 실행되고 있는 컨테이너에 접속하는 명령어이다. 사용법은 다음과 같다. $ sudo docker attach (옵션가능) (컨테이너이름) attach로 컨테이너를 접속한다면 처음 도커 컨테이너를 run하였을 때의 환경이 포그라운드로 보여지게 된다. 따라서, 만약 도커 컨테이너를 run할 시 /bin/bash로 들어간 것이 아니라면 attach를 활용해서는 들어갈 수 없다. exec exec는 실행되고 있는 컨테이너에 새로운 명령..

서버안에서 conda env를 통해서 작업을 하더라도 여러가지 환경설정이 꼬이기 쉽상이다. 이를 해결하기 위해서는 docker를 활용하는 것이 os부터 여러 환경설정들을 컨테이너에 각각 설정해줄 수 있으므로 더 좋다. 이번에는 서버의 docker를 설치하고 jupyter notebook을 실행한 후 로컬에서 접속하는 방법을 전체적으로 진행해보았다. 도커 설치과정을 생략하겠다. 도커의 공식홈페이지를 참조하여 서버의 os에 따라 잘 설치하면 된다. https://docs.docker.com/engine/install/ubuntu/ Install Docker Engine on Ubuntu docs.docker.com 왼쪽 메뉴에서 CentOS, Debian, Fedora의 설치 방법도 확인 가능하다. 만약 N..