srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.52k stars 261 forks source link

pull access denied for ceos, repository does not exist or may require 'docker login' #660

Closed zkiroel closed 3 years ago

zkiroel commented 3 years ago

hello team I tried start with containerlab, Quick start theme so containerlab installed fine (I hope so)

# containerlab version

                           _                   _       _     
                 _        (_)                 | |     | |    
 ____ ___  ____ | |_  ____ _ ____   ____  ____| | ____| | _  
/ ___) _ \|  _ \|  _)/ _  | |  _ \ / _  )/ ___) |/ _  | || \ 
( (__| |_|| | | | |_( ( | | | | | ( (/ /| |   | ( ( | | |_) )
\____)___/|_| |_|\___)_||_|_|_| |_|\____)_|   |_|\_||_|____/ 

    version: 0.19.1
     commit: 727dc77
       date: 2021-10-14T10:00:16Z
     source: https://github.com/srl-labs/containerlab
 rel. notes: https://containerlab.srlinux.dev/rn/0.19/#0191

tried to use file

name: srlceos01

topology:
  nodes:
    srl:
      kind: srl
      image: ghcr.io/nokia/srlinux
    ceos:
      kind: ceos
      image: ceos:4.25.0F

  links:
    - endpoints: ["srl:e1-1", "ceos:eth1"]

got an error:

# containerlab deploy --topo srlceos01.clab.yml
INFO[0000] Parsing & checking topology file: srlceos01.clab.yml 
INFO[0000] Pulling docker.io/library/ceos:4.25.0F Docker image 
Error: Error response from daemon: pull access denied for ceos, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

so, I modified the file to

name: srlceos01

topology:
  nodes:
    srl:
      kind: srl
      image: ghcr.io/nokia/srlinux
    srl2:
      kind: srl
      image: ghcr.io/nokia/srlinux
  links:
    - endpoints: ["srl:e1-1", "srl2:e1-1"]

that setup started up fine

# containerlab deploy --topo srlceos01.clab.yml
INFO[0000] Parsing & checking topology file: srlceos01.clab.yml 
INFO[0000] Creating lab directory: /home/magos/clab-quickstart/clab-srlceos01 
INFO[0000] Creating docker network: Name='clab', IPv4Subnet='172.20.20.0/24', IPv6Subnet='2001:172:20:20::/64', MTU='1500' 
INFO[0000] Creating container: srl                      
INFO[0000] Creating container: srl2                     
INFO[0001] Creating virtual wire: srl:e1-1 <--> srl2:e1-1 
INFO[0001] Running postdeploy actions for Nokia SR Linux 'srl2' node 
INFO[0001] Running postdeploy actions for Nokia SR Linux 'srl' node 
INFO[0015] Adding containerlab host entries to /etc/hosts file 
+---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+
| # |        Name         | Container ID |         Image         | Kind |  State  |  IPv4 Address  |     IPv6 Address     |
+---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+
| 1 | clab-srlceos01-srl  | 582c6a970149 | ghcr.io/nokia/srlinux | srl  | running | 172.20.20.2/24 | 2001:172:20:20::2/64 |
| 2 | clab-srlceos01-srl2 | 0c2c2870f002 | ghcr.io/nokia/srlinux | srl  | running | 172.20.20.3/24 | 2001:172:20:20::3/64 |
+---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+

I use a fresh installation of Debian 11

please advise how I can fix that, thank you

hellt commented 3 years ago

Hi! Ceos image is not available for pulling freely as opposed to srlinux image.

For ceos you need to download an archive from Arista website and import the image from it.

I will update the quick start to mention this

On Tue, 19 Oct 2021 at 15:44, brzknv @.***> wrote:

hello team I tried start with containerlab, Quick start theme so containerlab installed fine (I hope so)

containerlab version

                       _                   _       _
             _        (_)                 | |     | |

_ __ | |_ | | | | / ) | | )/ | | \ / )/ ) |/ _ | || \ ( (| ||| | | | |( ( | | | | | ( (/ /| | | ( ( | | |) ) ____)/|| ||__)||||| ||__)| ||_||_|__/

version: 0.19.1
 commit: 727dc77
   date: 2021-10-14T10:00:16Z
 source: https://github.com/srl-labs/containerlab

rel. notes: https://containerlab.srlinux.dev/rn/0.19/#0191

tried to use file

name: srlceos01

topology: nodes: srl: kind: srl image: ghcr.io/nokia/srlinux ceos: kind: ceos image: ceos:4.25.0F

links:

  • endpoints: ["srl:e1-1", "ceos:eth1"]

got an error:

containerlab deploy --topo srlceos01.clab.yml

INFO[0000] Parsing & checking topology file: srlceos01.clab.yml INFO[0000] Pulling docker.io/library/ceos:4.25.0F Docker image Error: Error response from daemon: pull access denied for ceos, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

so, I modified the file to

name: srlceos01

topology: nodes: srl: kind: srl image: ghcr.io/nokia/srlinux srl2: kind: srl image: ghcr.io/nokia/srlinux links:

  • endpoints: ["srl:e1-1", "srl2:e1-1"]

that setup started up fine

containerlab deploy --topo srlceos01.clab.yml

INFO[0000] Parsing & checking topology file: srlceos01.clab.yml INFO[0000] Creating lab directory: /home/magos/clab-quickstart/clab-srlceos01 INFO[0000] Creating docker network: Name='clab', IPv4Subnet='172.20.20.0/24', IPv6Subnet='2001:172:20:20::/64', MTU='1500' INFO[0000] Creating container: srl INFO[0000] Creating container: srl2 INFO[0001] Creating virtual wire: srl:e1-1 <--> srl2:e1-1 INFO[0001] Running postdeploy actions for Nokia SR Linux 'srl2' node INFO[0001] Running postdeploy actions for Nokia SR Linux 'srl' node INFO[0015] Adding containerlab host entries to /etc/hosts file +---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+ | # | Name | Container ID | Image | Kind | State | IPv4 Address | IPv6 Address | +---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+ | 1 | clab-srlceos01-srl | 582c6a970149 | ghcr.io/nokia/srlinux | srl | running | 172.20.20.2/24 | 2001:172:20:20::2/64 | | 2 | clab-srlceos01-srl2 | 0c2c2870f002 | ghcr.io/nokia/srlinux | srl | running | 172.20.20.3/24 | 2001:172:20:20::3/64 | +---+---------------------+--------------+-----------------------+------+---------+----------------+----------------------+

I use a fresh installation of Debian 11

please advise how I can fix that, thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/srl-labs/containerlab/issues/660, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLKV5OKUU2BI7QXEHNFJ7LUHVY5BANCNFSM5GJGFK3Q .

zkiroel commented 3 years ago

thank you