Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] netconf

Subject: Rare project developers

List archive

Re: [rare-dev] netconf


Chronological Thread 
  • From: David Schmitz <>
  • To: mc36 <>
  • Cc:
  • Subject: Re: [rare-dev] netconf
  • Date: Wed, 15 Feb 2023 08:34:49 +0100 (CET)
  • Authentication-results: postout.lrz.de (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=lrz.de

Hi,

sorry, my fault, I have moved the Dockerfile
from vnet_router/rtr/Dockerfile.fod_netconf_get
to Dockerfiles.d/Dockerfile.fod_netconf_get .

So, that should work:
docker build -f Dockerfiles.d/Dockerfile.fod_netconf_get -t netconfget1 .

Best Regards
David

On Wed, 15 Feb 2023, mc36 wrote:

Date: Wed, 15 Feb 2023 08:25:15 +0100
From: mc36 <>
To: David Schmitz <>
Cc:
Subject: Re: [rare-dev] netconf

allright so some progress but still something missing from my understanding:

mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$ sudo docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$ sudo docker build -f vnet_router/rtr/Dockerfile.fod_netconf_get -t netconfget1 .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/mc36/FOD/vnet_router/rtr/Dockerfile.fod_netconf_get: no such file or directory
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$ find . | grep fod_netconf_get
./Dockerfiles.d/Dockerfile.fod_netconf_get
mc36@fod:~/FOD$ cd Dockerfiles.d/
mc36@fod:~/FOD/Dockerfiles.d$ sudo docker build -f vnet_router/rtr/Dockerfile.fod_netconf_get -t netconfget1 .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/mc36/FOD/Dockerfiles.d/vnet_router: no such file or directory
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$ ls -lsa /home/mc36/FOD/Dockerfiles.d/vnet_router
ls: cannot access '/home/mc36/FOD/Dockerfiles.d/vnet_router': No such file or directory
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$
mc36@fod:~/FOD/Dockerfiles.d$ cd ..
mc36@fod:~/FOD$ find . | grep vnet_router
./vnet_router
./vnet_router/configuration.yang
./vnet_router/fod_vnet_router
./vnet_router/fod_vnet_router.old
./vnet_router/snmp
./vnet_router/snmp/pass_persisttest_bgpflowspec
./vnet_router/snmp/snmp-release
./vnet_router/snmp/snmp-release/passtest.pl
./vnet_router/snmp/snmp-release/passtest
./vnet_router/snmp/snmp-release/pass_persisttest
./vnet_router/rtr
./vnet_router/rtr/patches
./vnet_router/rtr/patches/ncclient-debug.patch
./vnet_router/rtr/fodtest_netconf_get
./vnet_router/rtr/init_env
./Dockerfiles.d/Dockerfile.vnet_router0
./Dockerfiles.d/Dockerfile.vnet_router2.ubuntu
./Dockerfiles.d/Dockerfile.vnet_router2.old
./Dockerfiles.d/Dockerfile.vnet_router2.debian.exabgp1
./Dockerfiles.d/Dockerfile.vnet_router2.debian
./Dockerfiles.d/Dockerfile.vnet_router2.debian.exabgp2.topo2
./Dockerfiles.d/Dockerfile.vnet_router2.debian.exabgp2
./Dockerfiles.d/Dockerfile.vnet_router2.debian.exabgp
./Dockerfiles.d/Dockerfile.vnet_router1
./Dockerfiles.d/Dockerfile.vnet_router2
./Dockerfiles.d/Dockerfile.vnet_router0a
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$
mc36@fod:~/FOD$ cd vnet_router/
mc36@fod:~/FOD/vnet_router$ ls -lsa /home/mc36/FOD/Dockerfiles.d/vnet_router
ls: cannot access '/home/mc36/FOD/Dockerfiles.d/vnet_router': No such file or directory
mc36@fod:~/FOD/vnet_router$ sudo docker build -f vnet_router/rtr/Dockerfile.fod_netconf_get -t netconfget1 .
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/mc36/FOD/vnet_router/vnet_router: no such file or directory
mc36@fod:~/FOD/vnet_router$
mc36@fod:~/FOD/vnet_router$
mc36@fod:~/FOD/vnet_router$




On 2/15/23 08:16, David Schmitz wrote:
Hi,

On Wed, 15 Feb 2023, mc36 wrote:

Date: Wed, 15 Feb 2023 08:03:55 +0100
From: mc36 <>
To: David Schmitz <>
Cc:
Subject: Re: [rare-dev] netconf

seemingly boths will work but i'm missing a prerequisite ? (sorry again for my lameness, i'm not too used to containers)
np,

is the container image "netconfget1" not in the list returned by
"docker images" ?

If it is not, try rebuilding it with
"docker build -f vnet_router/rtr/Dockerfile.fod_netconf_get -t netconfget1 . "


"netconfget1" is just a tag for the container image having been built
and can you choose any tag you like.
You can replace "netconfget1" in the "docker build ..." and "docker run ... " with your own choice.
You could also use the Docker image id listed by "docker images"
directly in the "docker run ..." instead of the tag.

Best Regards
David



mc36@fod:~$
mc36@fod:~$
mc36@fod:~$ sudo docker run -ti -e=NETCONF_HOST=10.10.10.227 -e=NETCONF_PORT=830 -e=NETCONF_USER=netconf -e=NETCONF_PASS=netconf netconfget1
[sudo] password for mc36:
Unable to find image 'netconfget1:latest' locally
docker: Error response from daemon: pull access denied for netconfget1, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
mc36@fod:~$
mc36@fod:~$
mc36@fod:~$
mc36@fod:~$ sudo docker run -ti netconfget1 /srv/flowspy/vnet_router/rtr/fodtest_netconf_get 10.10.10.227 830 netconf netconf
Unable to find image 'netconfget1:latest' locally
docker: Error response from daemon: pull access denied for netconfget1, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
mc36@fod:~$
mc36@fod:~$




--

David Schmitz

Boltzmannstrasse 1, 85748 Garching
Telefon: +49 89 35831-8765
Leibniz-Rechenzentrum, Germany
Mail:





Archive powered by MHonArc 2.6.19.

Top of Page