Linux

docker run --name docker-registry -d -p 5000:5000 registry/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/b626916dfce1fe21ac8e331b7e35a23b51c804f698069008df4380f871e3c6a2-init/merged: invalid a

Naan 2022. 9. 24. 00:17
320x100

docker run --name docker-registry -d -p 5000:5000 registry
/usr/bin/docker-current: Error response from daemon: error creating overlay mount to /var/lib/docker/overlay2/b626916dfce1fe21ac8e331b7e35a23b51c804f698069008df4380f871e3c6a2-init/merged: invalid argument.

위와 같이 에러가 발생을 한다면

 

서비스 종료

# systemctl stop docker

 

docker 데이터 삭제

# rm -rf /var/lib/docker

 

변수 지정

# vi /etc/sysconfig/docker-storage

DOCKER_STORAGE_OPTIONS="--storage-driver overlay"

 

서비스 시작

# systemctl start docker

 

# docker run --name docker-registry -d -p 5000:5000 registry
Unable to find image 'registry:latest' locally
Trying to pull repository docker.io/library/registry ...
latest: Pulling from docker.io/library/registry
213ec9aee27d: Pull complete
5299e6f78605: Pull complete
4c2fb79b7ce6: Pull complete
74a97d2d84d9: Pull complete
44c4c74a95e4: Pull complete
Digest: sha256:83bb78d7b28f1ac99c68133af32c93e9a1c149bcd3cb6e683a3ee56e312f1c96
Status: Downloaded newer image for docker.io/registry:latest
33072eb09af39361679d845b608e096ec6f359257cea236f3c402056d5b4fc36

이러면 정상 작동 된다.

320x100

'Linux' 카테고리의 다른 글

rocky docker 설치 방법  (1) 2022.09.30
Serv-U upgrade & backup  (2) 2022.09.29
docker network 추가 하기  (2) 2022.09.23
/lib64/ld-lsb-x86-64.so.3: bad ELF interpreter: No such file or directory  (0) 2022.09.22
docker lmgrd server 구축하기  (1) 2022.09.21