installation via docker ...
-------------------------------------------------------

cd /opt/
mkdir netdisco
mkdir netdisco/logs
mkdir netdisco/config
mkdir netdisco/nd-site-local
chown -R 901:901 netdisco/

#the cursor is still in /opt directory
curl -Ls -o docker-compose.yml https://tinyurl.com/nd2-dockercompose
vi docker-compose.yml (just check the file)
netstat -nat (check if tcp 5000 Listening port is free)
apt-get install docker.io (ubuntu 20)
apt-get install docker-compose
apt-get install docker-compose-v2

#build the docker:
root@linux:/opt/netdisco# docker-compose up
ERROR: The Compose file './docker-compose.yml' is invalid because:
Unsupported config option for services.netdisco-do: 'profiles'
>> comment out line with profiles! after that try again!

#build the docker > when error message "no configuration file provided: not found" appears:
root@linux: /usr/libexec/docker/cli-plugins/docker-compose up

#check docker
docker ps

#check if port 5000 comes up!
http://server-name:5000/

#on webfrontend enter a subnet to discover like
#192.168.2.0/24

#under Admin > Discover All you see the status of the discovery

#under Admin > User Management
>> add an admin user + password and remove the guest account

#disable anoymous logon:
./netdisco/config/deployment.yml

#see also:
- https://hub.docker.com/r/netdisco/netdisco
- https://stackoverflow.com/questions/45764477/docker-compose-error-while-creating-mount-source-path (when read-only filesystem error occurs)

computer2know :: thank you for your visit :: have a nice day :: © 2024