새소식

반응형
Ubuntu/ERROR LOG

E: The repository ' https://download.docker.com/linux/ubuntu jammy InRelease' is not signed.(우분투 docker 설치시 에러)

  • -
반응형

 

ubuntu docker install error text with whale img generated by AI
W: GPG error: https://download.docker.com/linux/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8

우분투에서 Docker 설치할때 아래와 같은 에러가난다면!!!

 

W: https://dl.winehq.org/wine-builds/ubuntu/dists/focal/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
W: GPG error:https://download.docker.com/linux/ubuntu jammy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7EA0A9C3F273FCD8
E: The repository ' https://download.docker.com/linux/ubuntu jammy InRelease' is not signed.

 

우선 아래 명령어 실행해봅시다.

 sudo rm -rf /var/lib/apt/lists/*
 sudo apt-get update

 

누구는 성공했다고 하지만 저는 실패했습니다.

 

docker 공식문서 보고 해결했습니다.

  1. Set up Docker's apt repository.
    # Add Docker's official GPG key:
    sudo apt-get update
    sudo apt-get install ca-certificates curl
    sudo install -m 0755 -d /etc/apt/keyrings
    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
    sudo chmod a+r /etc/apt/keyrings/docker.asc
    
    # Add the repository to Apt sources:
    echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
      $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
      sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
    sudo apt-get update

     

  2. Install the Docker packages.

    To install the latest version, run:

    $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
    

     

  3. Verify that the installation is successful by running the hello-world image:
    $ sudo docker run hello-world
    

This command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.

반응형

 

참고: https://docs.docker.com/engine/install/ubuntu/

 

Ubuntu

Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.

docs.docker.com

 

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.