How to access docker container running in Google Cloud Platform
up vote
0
down vote
favorite
I just started yesterday and following tutorials for using GCP.
I have a Cassandra docker container running in google compute engine. I would like to connect to the Cassandra docker container from my local machine and load data into it.
I tried using the IP address of the compute instance and Cassandra port. But the java program which loads data into Cassandra throws an error NoHostAvailableException
I appreciate your time.
docker cassandra google-cloud-platform
add a comment |
up vote
0
down vote
favorite
I just started yesterday and following tutorials for using GCP.
I have a Cassandra docker container running in google compute engine. I would like to connect to the Cassandra docker container from my local machine and load data into it.
I tried using the IP address of the compute instance and Cassandra port. But the java program which loads data into Cassandra throws an error NoHostAvailableException
I appreciate your time.
docker cassandra google-cloud-platform
Try adding--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.
– Hitobat
Nov 10 at 15:18
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I just started yesterday and following tutorials for using GCP.
I have a Cassandra docker container running in google compute engine. I would like to connect to the Cassandra docker container from my local machine and load data into it.
I tried using the IP address of the compute instance and Cassandra port. But the java program which loads data into Cassandra throws an error NoHostAvailableException
I appreciate your time.
docker cassandra google-cloud-platform
I just started yesterday and following tutorials for using GCP.
I have a Cassandra docker container running in google compute engine. I would like to connect to the Cassandra docker container from my local machine and load data into it.
I tried using the IP address of the compute instance and Cassandra port. But the java program which loads data into Cassandra throws an error NoHostAvailableException
I appreciate your time.
docker cassandra google-cloud-platform
docker cassandra google-cloud-platform
asked Nov 9 at 23:58
supritshah1289
451511
451511
Try adding--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.
– Hitobat
Nov 10 at 15:18
add a comment |
Try adding--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.
– Hitobat
Nov 10 at 15:18
Try adding
--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.– Hitobat
Nov 10 at 15:18
Try adding
--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.– Hitobat
Nov 10 at 15:18
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
From my understanding, unless you expose the docker container's port publicly, you cannot access the port of the container anyway. This is where the concept of services comes in cloud architectures, to publicly expose container/s. Detailed instruction is given in "configuring endpoints" and following sections in the following article https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker .
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
From my understanding, unless you expose the docker container's port publicly, you cannot access the port of the container anyway. This is where the concept of services comes in cloud architectures, to publicly expose container/s. Detailed instruction is given in "configuring endpoints" and following sections in the following article https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker .
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
add a comment |
up vote
0
down vote
From my understanding, unless you expose the docker container's port publicly, you cannot access the port of the container anyway. This is where the concept of services comes in cloud architectures, to publicly expose container/s. Detailed instruction is given in "configuring endpoints" and following sections in the following article https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker .
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
add a comment |
up vote
0
down vote
up vote
0
down vote
From my understanding, unless you expose the docker container's port publicly, you cannot access the port of the container anyway. This is where the concept of services comes in cloud architectures, to publicly expose container/s. Detailed instruction is given in "configuring endpoints" and following sections in the following article https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker .
From my understanding, unless you expose the docker container's port publicly, you cannot access the port of the container anyway. This is where the concept of services comes in cloud architectures, to publicly expose container/s. Detailed instruction is given in "configuring endpoints" and following sections in the following article https://cloud.google.com/endpoints/docs/openapi/get-started-compute-engine-docker .
answered Nov 10 at 6:35
Tapan Halani
485
485
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
add a comment |
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
thank you, I will read this documentation and follow it.
– supritshah1289
Nov 10 at 13:25
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53234775%2fhow-to-access-docker-container-running-in-google-cloud-platform%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Try adding
--network=host
to your docker run command. Cassandra reports its own IP address to the cluster so any more than 1 node and you'll start having problems using docker IP.– Hitobat
Nov 10 at 15:18