Closed xorr0 closed 5 years ago
I want to note that I found THIS on the docker-compose issues #4240:
Looks like we have to set this in our
~/Documents/WindowsPowershell/Microsoft.PowerShell_profile.ps1
... $Env:COMPOSE_CONVERT_WINDOWS_PATHS=1 ...
I did that, and retried to use netdisco Docker Image... Things got a little further, but still not right:
λ curl -Ls -o dc-netdisco-do.yml https://raw.githubusercontent.com/netdisco/netdisco-docker/master/dc-netdisco-do.yml
λ ls
dc-netdisco-do.yml*
λ docker-compose up
Creating network "vms_default" with the default driver
Creating vms_netdisco-postgresql_1 ... done
Creating vms_netdisco-do_1 ... done
Attaching to vms_netdisco-postgresql_1, vms_netdisco-do_1
netdisco-postgresql_1 | The files belonging to this database system will be owned by user "postgres".
netdisco-postgresql_1 | This user must also own the server process.
netdisco-postgresql_1 |
netdisco-postgresql_1 | The database cluster will be initialized with locale "en_US.utf8".
netdisco-postgresql_1 | The default database encoding has accordingly been set to "UTF8".
netdisco-postgresql_1 | The default text search configuration will be set to "english".
netdisco-postgresql_1 |
netdisco-postgresql_1 | Data page checksums are disabled.
netdisco-postgresql_1 |
netdisco-postgresql_1 | fixing permissions on existing directory /var/lib/postgresql/data ... ok
netdisco-postgresql_1 | creating subdirectories ... ok
netdisco-postgresql_1 | selecting default max_connections ... 100
netdisco-postgresql_1 | selecting default shared_buffers ... 128MB
netdisco-postgresql_1 | selecting dynamic shared memory implementation ... posix
netdisco-postgresql_1 | creating configuration files ... ok
netdisco-do_1 | Attempting to create directory /home/netdisco/perl5
netdisco-do_1 | [1] 2019-11-09 20:58:10 info App::Netdisco version 2.044002 loaded.
netdisco-do_1 | error: missing action!
netdisco-do_1 | NAME
netdisco-do_1 | netdisco-do - Run any Netdisco job from the command-line.
netdisco-do_1 |
netdisco-do_1 | SYNOPSIS
netdisco-do_1 | ~/bin/netdisco-do <action> [-DISQR] [--enqueue] [--quiet] [-d <device> [-p <port>] [-e <extra>]]
netdisco-do_1 |
netdisco-do_1 | DESCRIPTION
netdisco-do_1 | This program allows you to run any Netdisco poller job from the
netdisco-do_1 | command-line.
netdisco-do_1 |
netdisco-do_1 | ACTIONS
netdisco-do_1 | Note that some jobs ("discoverall", "macwalk", "arpwalk", "nbtwalk")
netdisco-do_1 | simply add entries to the Netdisco job queue for other jobs, so won't
netdisco-do_1 | seem to do much when you trigger them. Everything else happens in
netdisco-do_1 | real-time.
netdisco-do_1 |
netdisco-do_1 | However the ""--enqueue"" option will force the queueing of the job,
netdisco-do_1 | regardless of type. This may be useful for cron-driven actions, or for
netdisco-do_1 | actions working across large IP spaces.
netdisco-do_1 |
netdisco-do_1 | For any action, if you wish to run one of its individual worker stages,
netdisco-do_1 | then pass "action::stage" as the first argument to "netdisco-do", for
netdisco-do_1 | example "discover::neighbors".
netdisco-do_1 |
netdisco-do_1 | Any action taking a "device" parameter can be passed either a hostname
netdisco-do_1 | or IP address of any interface of a known or unknown device, or an IP
netdisco-do_1 | prefix (subnet) which will cause "netdisco-do" to run the action on all
netdisco-do_1 | addresses in that range.
netdisco-do_1 |
netdisco-do_1 | The "device" parameter may be passed multiple times. In this case, all
netdisco-do_1 | addresses (after expanding IP Prefixes) will be handled one by one.
netdisco-do_1 |
netdisco-do_1 | discover
netdisco-do_1 | Run a discover on the device (specified with "-d").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do discover -d 192.0.2.1
netdisco-do_1 |
netdisco-do_1 | Run a discover on two different devices (specified with "-d").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do discover -d 192.0.2.1 -d 192.15.2.95
netdisco-do_1 |
netdisco-do_1 | discoverall
netdisco-do_1 | Queue a discover for all known devices.
netdisco-do_1 |
netdisco-do_1 | macsuck
netdisco-do_1 | Run a macsuck on the device (specified with "-d").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do macsuck -d 192.0.2.1
netdisco-do_1 |
netdisco-do_1 | macwalk
netdisco-do_1 | Queue a macsuck for all known devices.
netdisco-do_1 |
netdisco-do_1 | arpnip
netdisco-do_1 | Run an arpnip on the device (specified with "-d").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do arpnip -d 192.0.2.1
netdisco-do_1 |
netdisco-do_1 | arpwalk
netdisco-do_1 | Queue an arpnip for all known devices.
netdisco-do_1 |
netdisco-do_1 | delete
netdisco-do_1 | Delete a device (specified with "-d"). Pass a log message for the action
netdisco-do_1 | in the "-e" parameter. Optionally request for associated nodes to be
netdisco-do_1 | archived (rather than deleted) by setting the "-p" parameter to ""yes""
netdisco-do_1 | (mnemonic: preserve).
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do delete -d 192.0.2.1
netdisco-do_1 | ~/bin/netdisco-do delete -d 192.0.2.1 -e 'older than the sun'
netdisco-do_1 | ~/bin/netdisco-do delete -d 192.0.2.1 -e 'older than the sun' -p yes
netdisco-do_1 |
netdisco-do_1 | renumber
netdisco-do_1 | Change the canonical IP address of a device (specified with "-d"). Pass
netdisco-do_1 | the new IP address in the "-e" parameter. All related records such as
netdisco-do_1 | topology, log and node information will also be updated to refer to the
netdisco-do_1 | new device.
netdisco-do_1 |
netdisco-do_1 | Note that no check is made as to whether the new IP is reachable for
netdisco-do_1 | future polling.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do renumber -d 192.0.2.1 -e 192.0.2.254
netdisco-do_1 |
netdisco-do_1 | nbtstat
netdisco-do_1 | Run an nbtstat on the node (specified with "-d").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do nbtstat -d 192.0.2.2
netdisco-do_1 |
netdisco-do_1 | nbtwalk
netdisco-do_1 | Queue an nbtstat for all known nodes.
netdisco-do_1 |
netdisco-do_1 | expire
netdisco-do_1 | Run Device and Node expiry actions according to configuration.
netdisco-do_1 |
netdisco-do_1 | expirenodes
netdisco-do_1 | Archive nodes on the specified device. If you want to delete nodes, set
netdisco-do_1 | the "-e" parameter to ""no"" (mnemonic: expire). If you want to perform
netdisco-do_1 | the action on a specific port, set the "-p" parameter.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do expirenodes -d 192.0.2.1
netdisco-do_1 | ~/bin/netdisco-do expirenodes -d 192.0.2.1 -p FastEthernet0/1 -e no
netdisco-do_1 |
netdisco-do_1 | graph
netdisco-do_1 | Generate GraphViz graphs for the largest cluster of devices.
netdisco-do_1 |
netdisco-do_1 | You'll need to install the Graph::Undirected and GraphViz Perl modules,
netdisco-do_1 | and possibly also the "graphviz" utility for your operating system. Also
netdisco-do_1 | create a directory for the output files.
netdisco-do_1 |
netdisco-do_1 | mkdir ~/graph
netdisco-do_1 | ~/bin/localenv cpanm Graph::Undirected
netdisco-do_1 | ~/bin/localenv cpanm GraphViz
netdisco-do_1 |
netdisco-do_1 | show
netdisco-do_1 | Dump the content of an SNMP MIB leaf, which is useful for diagnostics
netdisco-do_1 | and troubleshooting. You should provide the ""-e"" option which is the
netdisco-do_1 | name of the leaf (such as "interfaces" or "uptime").
netdisco-do_1 |
netdisco-do_1 | If you wish to test with a device class other than that discovered,
netdisco-do_1 | prefix the leaf with the class short name, for example
netdisco-do_1 | ""Layer3::C3550::interfaces"" or ""Layer2::HP::uptime"". Using ""::"" as
netdisco-do_1 | the start of the prefix will test against the base ""SNMP::Info"" class.
netdisco-do_1 |
netdisco-do_1 | As well, SNMP OID names can be used as an argument for ""-e"", so you
netdisco-do_1 | can use "ifName" for example, which will use the netdisco-mibs files for
netdisco-do_1 | translations.
netdisco-do_1 |
netdisco-do_1 | All ""-e"" parameters are case sensitive.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e interfaces
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e Layer2::HP::interfaces
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e ::interfaces
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e ifName
netdisco-do_1 |
netdisco-do_1 | A parameter may be passed to the "SNMP::Info" method or SNMP object in
netdisco-do_1 | the ""-p"" parameter:
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e has_layer -p 3
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e ifName -p 2
netdisco-do_1 |
netdisco-do_1 | The ""-e"" parameter "specify" will show the used configuration for the
netdisco-do_1 | specified device.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do show -d 192.0.2.1 -e specify
netdisco-do_1 |
netdisco-do_1 | psql
netdisco-do_1 | Start an interactive terminal with the Netdisco PostgreSQL database. If
netdisco-do_1 | you pass an SQL statement in the "-e" option then it will be executed.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do psql
netdisco-do_1 | ~/bin/netdisco-do psql -e 'SELECT ip, dns FROM device'
netdisco-do_1 | ~/bin/netdisco-do psql -e 'COPY (SELECT ip, dns FROM device) TO STDOUT WITH CSV HEADER'
netdisco-do_1 |
netdisco-do_1 | stats
netdisco-do_1 | Updates Netdisco's statistics on number of devices, nodes, etc, for
netdisco-do_1 | today.
netdisco-do_1 |
netdisco-do_1 | location
netdisco-do_1 | Set the SNMP location field on the device (specified with "-d"). Pass
netdisco-do_1 | the location string in the "-e" extra parameter.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do location -d 192.0.2.1 -e 'wiring closet'
netdisco-do_1 |
netdisco-do_1 | contact
netdisco-do_1 | Set the SNMP contact field on the device (specified with "-d"). Pass the
netdisco-do_1 | contact name in the "-e" extra parameter.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do contact -d 192.0.2.1 -e 'tel: 555-2453'
netdisco-do_1 |
netdisco-do_1 | portname
netdisco-do_1 | Set the description on a device port. Requires the "-d" parameter
netdisco-do_1 | (device), "-p" parameter (port), and "-e" parameter (description).
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do portname -d 192.0.2.1 -p FastEthernet0/1 -e 'Web Server'
netdisco-do_1 |
netdisco-do_1 | portcontrol
netdisco-do_1 | Set the up/down status on a device port. Requires the "-d" parameter
netdisco-do_1 | (device), "-p" parameter (port), and "-e" parameter ("up" or "down").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do portcontrol -d 192.0.2.1 -p FastEthernet0/1 -e up
netdisco-do_1 | ~/bin/netdisco-do portcontrol -d 192.0.2.1 -p FastEthernet0/1 -e down
netdisco-do_1 |
netdisco-do_1 | vlan
netdisco-do_1 | Set the native VLAN on a device port. Requires the "-d" parameter
netdisco-do_1 | (device), "-p" parameter (port), and "-e" parameter (VLAN number).
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do vlan -d 192.0.2.1 -p FastEthernet0/1 -e 102
netdisco-do_1 |
netdisco-do_1 | power
netdisco-do_1 | Set the PoE on/off status on a device port. Requires the "-d" parameter
netdisco-do_1 | (device), "-p" parameter (port), and "-e" parameter ("on" or "off").
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do power -d 192.0.2.1 -p FastEthernet0/1 -e on
netdisco-do_1 | ~/bin/netdisco-do power -d 192.0.2.1 -p FastEthernet0/1 -e off
netdisco-do_1 |
netdisco-do_1 | makerancidconf
netdisco-do_1 | Generates rancid configuration for known devices. See
netdisco-do_1 | App::Netdisco::Worker::Plugin::MakeRancidConf for configuration needs.
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do makerancidconf
netdisco-do_1 |
netdisco-do_1 | dumpconfig
netdisco-do_1 | Will dump the loaded and parsed configuration for the application. Pass
netdisco-do_1 | a specific configuration setting name to the "-e" parameter to dump only
netdisco-do_1 | that.
netdisco-do_1 |
netdisco-do_1 | Some configuration items like device_auth are evaluated against the ACL
netdisco-do_1 | first. Pass a device in "-d" to display them:
netdisco-do_1 |
netdisco-do_1 | ~/bin/netdisco-do dumpconfig -d 192.0.2.1 -e device_auth
netdisco-do_1 |
netdisco-do_1 | DEBUG OPTIONS
netdisco-do_1 | The flag ""-R"" will cause any changes to the database to be rolled back
netdisco-do_1 | at the end of the action.
netdisco-do_1 |
netdisco-do_1 | The flags ""-DISQ"" can be specified, multiple times, and enable the
netdisco-do_1 | following items in order:
netdisco-do_1 |
netdisco-do_1 | "-D"
netdisco-do_1 | Netdisco debug log level.
netdisco-do_1 |
netdisco-do_1 | "-I" or "-II"
netdisco-do_1 | SNMP::Info trace level (1 or 2).
netdisco-do_1 |
netdisco-do_1 | "-S" or "-SS" or "-SSS"
netdisco-do_1 | SNMP (net-snmp) trace level (1, 2 or 3).
netdisco-do_1 |
netdisco-do_1 | "-Q"
netdisco-do_1 | DBIx::Class trace enabled.
netdisco-do_1 |
netdisco-do_1 | In case of issues with the colored output, setting the environment
netdisco-do_1 | variable "ANSI_COLORS_DISABLED" can be used to suppress it.
netdisco-do_1 |
vms_netdisco-do_1 exited with code 2
netdisco-postgresql_1 | running bootstrap script ... ok
netdisco-postgresql_1 | performing post-bootstrap initialization ... sh: locale: not found
netdisco-postgresql_1 | No usable system locales were found.
netdisco-postgresql_1 | Use the option "--debug" to see details.
netdisco-postgresql_1 | ok
netdisco-postgresql_1 | syncing data to disk ... ok
netdisco-postgresql_1 |
netdisco-postgresql_1 | WARNING: enabling "trust" authentication for local connections
netdisco-postgresql_1 | You can change this by editing pg_hba.conf or using the option -A, or
netdisco-postgresql_1 | --auth-local and --auth-host, the next time you run initdb.
netdisco-postgresql_1 |
netdisco-postgresql_1 | Success. You can now start the database server using:
netdisco-postgresql_1 |
netdisco-postgresql_1 | pg_ctl -D /var/lib/postgresql/data -l logfile start
netdisco-postgresql_1 |
netdisco-postgresql_1 | waiting for server to start....LOG: could not bind IPv6 socket: Address not available
netdisco-postgresql_1 | HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
netdisco-postgresql_1 | LOG: database system was shut down at 2019-11-09 20:58:12 UTC
netdisco-postgresql_1 | LOG: MultiXact member wraparound protections are now enabled
netdisco-postgresql_1 | LOG: database system is ready to accept connections
netdisco-postgresql_1 | LOG: autovacuum launcher started
netdisco-postgresql_1 | done
netdisco-postgresql_1 | server started
netdisco-postgresql_1 | ALTER ROLE
netdisco-postgresql_1 |
netdisco-postgresql_1 |
netdisco-postgresql_1 | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/netdisco-initdb.sh
netdisco-postgresql_1 | netdisco-db-entrypoint: configuring Netdisco user and db
netdisco-postgresql_1 | CREATE ROLE
netdisco-postgresql_1 | netdisco-db-entrypoint: restarting pg privately to container
netdisco-postgresql_1 | LOG: received fast shutdown request
netdisco-postgresql_1 | LOG: aborting any active transactions
netdisco-postgresql_1 | LOG: autovacuum launcher shutting down
netdisco-postgresql_1 | LOG: shutting down
netdisco-postgresql_1 | waiting for server to shut down....LOG: database system is shut down
netdisco-postgresql_1 | done
netdisco-postgresql_1 | server stopped
netdisco-postgresql_1 | waiting for server to start....LOG: could not bind IPv6 socket: Address not available
netdisco-postgresql_1 | HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
netdisco-postgresql_1 | LOG: database system was shut down at 2019-11-09 20:58:14 UTC
netdisco-postgresql_1 | LOG: MultiXact member wraparound protections are now enabled
netdisco-postgresql_1 | LOG: database system is ready to accept connections
netdisco-postgresql_1 | LOG: autovacuum launcher started
netdisco-postgresql_1 | done
netdisco-postgresql_1 | server started
netdisco-postgresql_1 | netdisco-db-entrypoint: bringing schema up-to-date
netdisco-postgresql_1 | netdisco-db-entrypoint: importing OUI
netdisco-postgresql_1 | COPY 23285
netdisco-postgresql_1 | netdisco-db-entrypoint: marking schema as up-to-date
netdisco-postgresql_1 | netdisco-db-entrypoint: adding admin user if none exists
netdisco-postgresql_1 | INSERT 0 1
netdisco-postgresql_1 | netdisco-db-entrypoint: adding session key if none exists
netdisco-postgresql_1 | INSERT 0 1
netdisco-postgresql_1 | netdisco-db-entrypoint: queueing stats job
netdisco-postgresql_1 | INSERT 0 1
netdisco-postgresql_1 |
netdisco-postgresql_1 | LOG: received fast shutdown request
netdisco-postgresql_1 | LOG: aborting any active transactions
netdisco-postgresql_1 | LOG: autovacuum launcher shutting down
netdisco-postgresql_1 | LOG: shutting down
netdisco-postgresql_1 | waiting for server to shut down....LOG: database system is shut down
netdisco-postgresql_1 | done
netdisco-postgresql_1 | server stopped
netdisco-postgresql_1 |
netdisco-postgresql_1 | PostgreSQL init process complete; ready for start up.
netdisco-postgresql_1 |
netdisco-postgresql_1 | LOG: database system was shut down at 2019-11-09 20:58:17 UTC
netdisco-postgresql_1 | LOG: MultiXact member wraparound protections are now enabled
netdisco-postgresql_1 | LOG: database system is ready to accept connections
The postgresql portion works, but there is no Netdisco web server or anything?
λ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
e3fb81466944 netdisco/netdisco:latest-do "/home/netdisco/bin/…" 7 minutes ago Exited (2) 7 minutes ago
vms_netdisco-do_1
2db734a536e5 netdisco/netdisco:latest-postgresql "/usr/local/bin/netd…" 7 minutes ago Up 7 minutes 5432/tcp
vms_netdisco-postgresql_1
....SNIP....
Any assistance is much appreciated. Thank you.
your second post shows you only running the netdisco-do
container, which isn't the primary software. I would recommend you try that environment variable then running the original docker-compose up -d
command. If that doesn't work then you will want to use a compose file that creates docker volumes for the persistent data. There's a PR that has kind of stalled because it's waiting for input from me I believe, but here's the compose file:
https://github.com/inphobia/netdisco-docker/blob/nn_dockerwin/docker-compose-win.yml
I would recommend you try that environment variable then running the original
docker-compose up -d
command. If that doesn't work then you will want to use a compose file that creates docker volumes for the persistent data. There's a PR that has kind of stalled because it's waiting for input from me I believe, but here's the compose file:https://github.com/inphobia/netdisco-docker/blob/nn_dockerwin/docker-compose-win.yml
@LBegnaud your suggestion worked! Thank you very much =) The webserver is active and everything looks good
λ curl -Ls -o docker-compose.yml https://raw.githubusercontent.com/inphobia/netdisco-docker/nn_dockerwin/docker-compose-win.yml
λ ls
docker-compose.yml*
λ docker-compose up -d
Creating volume "netdisco_nd-pgdata-volume" with default driver
Creating volume "netdisco_nd-sitelocal-volume" with default driver
Creating volume "netdisco_nd-config-volume" with default driver
Creating volume "netdisco_nd-logs-volume" with default driver
Creating netdisco_netdisco-postgresql_1 ... done
Creating netdisco_netdisco-backend_1 ... done
Creating netdisco_netdisco-web_1 ... done
λ docker container ls -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
f98f4ea874c4 netdisco/netdisco:latest-backend "/home/netdisco/bin/…" Less than a second ago Up 7 seconds
netdisco_netdisco-backend_1
ce1852872003 netdisco/netdisco:latest-web "/home/netdisco/bin/…" Less than a second ago Up 7 seconds 0.0.0.0:5000->5000/tcp netdisco_netdisco-web_1
5a6a66f8e7c4 netdisco/netdisco:latest-postgresql "/usr/local/bin/netd…" Less than a second ago Up 9 seconds 5432/tcp
netdisco_netdisco-postgresql_1
ERROR: for netdisco_netdisco-postgresql_1 Cannot create container for service netdisco-postgresql: invalid volume specification: 'H:\VMs\netdisco\netdisco\pgdata:/var/lib/postgresql/data:rw'
ERROR: for netdisco-postgresql Cannot create container for service netdisco-postgresql: invalid volume specification: 'H:\VMs\netdisco\netdisco\pgdata:/var/lib/postgresql/data:rw' ERROR: Encountered errors while bringing up the project.
λ docker images -a REPOSITORY TAG IMAGE ID CREATED SIZE netdisco/netdisco latest-backend e71e5a80a002 5 weeks ago 415MB netdisco/netdisco latest-web 2783959ad6c7 5 weeks ago 115MB netdisco/netdisco latest-postgresql a397476d0b85 5 weeks ago 40.9MB hello-world latest fce289e99eb9 10 months ago 1.84kB
λ docker version Client: Version: 19.03.1 API version: 1.40 Go version: go1.12.7 Git commit: 74b1e89e8a Built: Wed Jul 31 15:18:18 2019 OS/Arch: windows/amd64 Experimental: false
Server: Docker Engine - Community Engine: Version: 19.03.4 API version: 1.40 (minimum version 1.12) Go version: go1.12.10 Git commit: 9013bf583a Built: Fri Oct 18 15:55:51 2019 OS/Arch: linux/amd64 Experimental: false containerd: Version: v1.2.10 GitCommit: b34a5c8af56e510852c35414db4c1f4fa6172339 runc: Version: 1.0.0-rc8+dev GitCommit: 3e425f80a8c931f88e6d94a8c831b9d5aa481657 docker-init: Version: 0.18.0 GitCommit: fec3683
λ docker-compose version docker-compose version 1.24.1, build 4667896b docker-py version: 3.7.3 CPython version: 3.6.8 OpenSSL version: OpenSSL 1.0.2q 20 Nov 2018
λ systeminfo
Host Name: DESKTOP-8FGTS3I OS Name: Microsoft Windows 10 Pro OS Version: 10.0.17763 N/A Build 17763 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: xorrr0 Registered Organization: Product ID:
Original Install Date: 12/4/2018, 11:15:24 PM
System Boot Time: 10/17/2019, 10:12:19 AM
System Manufacturer: Dell Inc.
System Model: OptiPlex 7020
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 60 Stepping 3 GenuineIntel ~3301 Mhz
BIOS Version: Dell Inc. A17, 10/24/2018
....SNIP.... ....SNIP....
λ rm docker-compose.yml λ curl -Ls -o dc-netdisco-do.yml https://raw.githubusercontent.com/netdisco/netdisco-docker/master/dc-netdisco-do.yml
λ docker-compose -f dc-netdisco-do.yml run netdisco-do show -d 1.1.1.1 -e specify -DI Creating netdisco_netdisco-postgresql_1 ... done Pulling netdisco-do (netdisco/netdisco:latest-do)... latest-do: Pulling from netdisco/netdisco 5a3ea8efae5d: Already exists 83072c0852b2: Already exists f36e67a77db7: Already exists 0f2e298f9e67: Already exists 0b90c0ba2ac5: Already exists 1b8e675889e4: Already exists bc57404dd9a9: Already exists 5466d73feaf2: Already exists b5835d0ef0b5: Already exists f2f694809c10: Already exists e5c88e448e6c: Already exists Digest: sha256:2d1a2ac1e54c9de36586b5ca1dfa523e68022c2835696dd6c2d3e76f8b66dbee Status: Downloaded newer image for netdisco/netdisco:latest-do ERROR: Cannot create container for service netdisco-do: invalid volume specification: 'H:\VMs\netdisco\netdisco\config:/home/netdisco/environments:rw'
λ docker-compose -f dc-netdisco-do.yml run netdisco-do show -d 192.168.99.100 -e specify -DI Starting netdisco_netdisco-postgresql_1 ... done ERROR: Cannot create container for service netdisco-do: invalid volume specification: 'H:\VMs\netdisco\netdisco\nd-site-local:/home/netdisco/nd-site-local:rw'
λ docker-compose config ERROR: Can't find a suitable configuration file in this directory or any parent. Are you in the right directory?
λ cp dc-netdisco-do.yml docker-compose.yml λ docker-compose config --services --volumes netdisco-postgresql netdisco-do λ docker-compose config services: netdisco-do: depends_on: netdisco-postgresql: condition: service_started environment: NETDISCO_DB_HOST: netdisco-postgresql NETDISCO_DOMAIN: discover image: netdisco/netdisco:latest-do volumes: