1

Setup NuoDB in Docker

Hello, 

I did the configuration of NuoDB within the Docker, and Im able to connect via container but not from the outside of the container. What should be the problem ?

 

Here are the commands I run:

Commands executed to start containers:

docker run -d --name ad1 --rm --hostname ad1 --net nuodb-net -p 8899:8888 -p 48004:48004 -p 48005:48005 -p 48006:48006 -e "NUODB_DOMAIN_ENTRYPOINT=ad1" nuodb/nuodb-ce:latest nuoadmin

docker run -d --name sm1 --hostname sm1 --rm \
    --net nuodb-net nuodb/nuodb-ce:latest nuodocker \
    --api-server ad1:8888 start sm \
    --db-name test --server-id ad1 \
    --dba-user dba --dba-password dba \
    --labels "zone east node localhost" \
    --archive-dir /var/opt/nuodb/archive
	
	
	docker run -d --name te1 --hostname te1 --rm \
    --net nuodb-net nuodb/nuodb-ce:latest nuodocker \
    --api-server ad1:8888 start te \
    --db-name test --server-id ad1
	

 [root@server1 ~]# docker ps --all
CONTAINER ID        IMAGE                   COMMAND                  CREATED             STATUS              PORTS                                                          NAMES
b80166454c7f        nuodb/nuodb-ce:latest   "docker-entrypoint.s…"   8 minutes ago       Up 8 minutes        8888/tcp, 48004-48006/tcp                                      te1
6a8f6cbdc995        nuodb/nuodb-ce:latest   "docker-entrypoint.s…"   9 minutes ago       Up 9 minutes        8888/tcp, 48004-48006/tcp                                      sm1
fd04933fd62d        nuodb/nuodb-ce:latest   "docker-entrypoint.s…"   9 minutes ago       Up 9 minutes        0.0.0.0:48004-48006->48004-48006/tcp, 0.0.0.0:8899->8888/tcp   ad1

	We are able to access nuodb via docker:
	
bash-4.2$ nuosql test@localhost --user dba --password dba
SQL> SHOW SCHEMAS;

    Found 1 schemas
        SYSTEM

3 comments

Please sign in to leave a comment.