본문 바로가기
ERROR

[도커 에러] The push refers to repository [docker.io/dmstjr0605/test]An image does not exist locally with the tag: dmstjr0605/test

by Nuridal_class 2022. 1. 18.
728x90
728x90
docker push dmstjr0605/test:0.1

docker hub에 테스트 겸 만든 docker image를 업로드 하려고 docker push를 하였더니

더보기

The push refers to repository [docker.io/dmstjr0605/test] An image does not exist locally with the tag: dmstjr0605/test

아래와 같은 오류가 발생하였다

즉, An image does not exist locally with the tag: dmstjr0605/test

    => 로컬에 dmstjr0605/test의 이름을 가진 image가 없다고 뜬다

 

해결법을 찾아보니

docker hub의 repository 이름로컬의 docker image repository 이름을 똑같이 해줘야 한다

 

 

이때 docker image tag 명령어를 이용하였다

docker image tag test:0.1 dmstjr0605/test:0.1

=> 명령어 결과 dmstjr0605/test 라는 이미지가 기존것과 복사되어 생성된 것을 확인할 수 있다

 

다음 다시 docker push dmstjr0605/test:0.1 명령어를 실행해 보면

=> push가 정상적으로 된 것을 cmd 창에서 확인할 수 있다

 

마지막으로 docker hub에 접속하여 본인이 올린 image를 다시 확인해 볼 수 있다

위와 같이 에러를 해결해 보면 될 것 같다

 

나에게 어려운 오류가 사라질때까지...

728x90
300x250