Couchbase Server Container, inside of a Linux(Centos) container fails to connect

I have created a Linux Centos container through the following Dockerfile:

FROM centos

RUN cd /etc/yum.repos.d/

RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*

RUN sed -i 's|#baseurl=|baseurl=|g' /etc/yum.repos.d/CentOS-*

RUN yum update -y

RUN yum makecache --refresh

RUN yum -y install gdb

Inside that Linux container, I am running a script that first initializes a Couchbase docker image, at http://localhost:8091. After initializing the Couchbase docker image, I try to make an http.request to the Couchbase server that should be up and running, through

            host: host,
            port: 8091,
            path: '/'

but that doesn’t seem to work. Do you have any ideas as to why it might be happening? Could it be the fact that I haven’t exposed port 8091 in my Linux container? Or could it be that I am not setting up the Couchbase server right? The issue is that I am trying to run a container, inside of another container and then from the outer container(Linux) make a call to the interior one (Couchbase).

Thank you in advance.