Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.4 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

docker container problem , unable to connect to we interface

hello ,

I'm like 5 mins into ocs inventory sopardon me if i'm doing something wrong .

I'm trying to run ocs-inventory with docker container but for some reason unable to connect to the web interface .

Here's a list of steps i executed .

Step1 : created a new docker network

 $ docker network create --driver bridge ocs-network  --subnet=192.168.222.0/16 --gateway=192.168.222.1 --ip-range=192.168.222.2/24

step 2: configured a mysql container

docker run --name ocs-mysql   -e MYSQL_ROOT_PASSWORD=ocs -e MYSQL_DATABASE=ocs-web -e MYSQL_USER=ocs --network=ocs-network -d  mysql:lates

step3 : step configure my ocs container

sudo docker run -p 80:80 -p 3306:3306  --name myocsinventory -e OCS_DBNAME=ocs-web -e OCS_DBSERVER_READ=192.168.222.2 -e OCS_DBSERVER_WRITE=192.168.222.2 -e OCS_DBUSER=ocs -e OCS_DBPASS=ocs  --network=ocs-network  -itd ocsinventory/ocsinventory-docker-image:latest bash

how do i access the web interface ?
asked Apr 20 in OCS Inventory NG server for Unix by divneet (120 points)

Please log in or register to answer this question.

 
Powered by Question2Answer
...