AWS EB single docker getting 404 error - Already Exposed 8000 portHow to get a Docker container's IP address from the host?Exposing a port on a live Docker containerWhat is the difference between “expose” and “publish” in Docker?Docker: Map host ports to several docker containersI can not access my Container Docker Image by HTTPHow do I get into a Docker container's shell?Exposing ports in Docker won't workDocker bridge and Falcon gunicornAWS Elastic Beanstalk and Docker - EXPOSE requires at least one argumentDocker expose not working elastic beanstalk
Why do you need to heat the pan before heating the olive oil?
Counterfeit checks were created for my account. How does this type of fraud work?
Why is "Congress shall have power to enforce this article by appropriate legislation" necessary?
How did the Vostok ejection seat safely eject an astronaut from a sealed space capsule?
Are there examples of rowers who also fought?
Why don't countries like Japan just print more money?
Can Hunter's Mark be moved after Silence has been cast on a character?
Boss wants someone else to lead a project based on the idea I presented to him
Draw a symmetric alien head
macOS: How to take a picture from camera after 1 minute
Dmesg full of I/O errors, smart ok, four disks affected
How to remove stain from pavement after having dropped sulfuric acid on it?
Helping ease my back pain by studying 13 hours everyday , even weekends
Should the party get XP for a monster they never attacked?
Is "Busen" just the area between the breasts?
What is the highest voltage from the power supply a Raspberry Pi 3 B can handle without getting damaged?
Is there any proof that high saturation and contrast makes a picture more appealing in social media?
What is the oldest commercial MS-DOS program that can run on modern versions of Windows without third-party software?
Has a life raft ever been successfully deployed on a modern commercial flight?
80s or 90s Fantasy novel, part of series. Castle talks to wizard, 2 headed dragon fights itself
Why isn't my calculation that we should be able to see the sun well beyond the observable universe valid?
Second 100 amp breaker inside existing 200 amp residential panel for new detached garage
"Correct me if I'm wrong"
How could empty set be unique if it could be vacuously false
AWS EB single docker getting 404 error - Already Exposed 8000 port
How to get a Docker container's IP address from the host?Exposing a port on a live Docker containerWhat is the difference between “expose” and “publish” in Docker?Docker: Map host ports to several docker containersI can not access my Container Docker Image by HTTPHow do I get into a Docker container's shell?Exposing ports in Docker won't workDocker bridge and Falcon gunicornAWS Elastic Beanstalk and Docker - EXPOSE requires at least one argumentDocker expose not working elastic beanstalk
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have created single Docker Python application. Tested it using the local Docker run and it works fine. I
I have exposed the Port 8000 and also included the Dockerrun.aws.json file and only used this file as the image is already uploaded to Docker Hub
"AWSEBDockerrunVersion": "1",
"Image":
"Name": "njdocker2014/snakeeyes:2",
"Update": "true"
,
"Ports": [
"ContainerPort": 8000,
"HostPort": 8000
],
"Logging": "/var/log/snakeyes",
"Command": "gunicorn -b 0.0.0.0:8000 --access-logfile - 'snakeeyes.app:create_app()'"
Dockerfile as EXPOSE 8000
And The Docker is running in the EC2 Container as shown below,
[ec2-user@ip-172-31-47-66 ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dd757b4a0102 8af7a8cee988 "gunicorn -b 0.0.0.0…" 8 minutes ago Up 8 minutes 8000/tcp condescending_pare
When I access the EB DNS URL, it gives 404 not Found, And Even the Docker Logs also show same Error,
[2019-03-25 06:47:01 +0000] [10] [INFO] Booting worker with pid: 10
172.17.0.1 - - [25/Mar/2019:06:53:17 +0000] "GET / HTTP/1.1" 404 232 "-" "-"
What else to be done to send the request to port 8000 inside the container.
amazon-web-services docker amazon-elastic-beanstalk
add a comment |
I have created single Docker Python application. Tested it using the local Docker run and it works fine. I
I have exposed the Port 8000 and also included the Dockerrun.aws.json file and only used this file as the image is already uploaded to Docker Hub
"AWSEBDockerrunVersion": "1",
"Image":
"Name": "njdocker2014/snakeeyes:2",
"Update": "true"
,
"Ports": [
"ContainerPort": 8000,
"HostPort": 8000
],
"Logging": "/var/log/snakeyes",
"Command": "gunicorn -b 0.0.0.0:8000 --access-logfile - 'snakeeyes.app:create_app()'"
Dockerfile as EXPOSE 8000
And The Docker is running in the EC2 Container as shown below,
[ec2-user@ip-172-31-47-66 ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dd757b4a0102 8af7a8cee988 "gunicorn -b 0.0.0.0…" 8 minutes ago Up 8 minutes 8000/tcp condescending_pare
When I access the EB DNS URL, it gives 404 not Found, And Even the Docker Logs also show same Error,
[2019-03-25 06:47:01 +0000] [10] [INFO] Booting worker with pid: 10
172.17.0.1 - - [25/Mar/2019:06:53:17 +0000] "GET / HTTP/1.1" 404 232 "-" "-"
What else to be done to send the request to port 8000 inside the container.
amazon-web-services docker amazon-elastic-beanstalk
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48
add a comment |
I have created single Docker Python application. Tested it using the local Docker run and it works fine. I
I have exposed the Port 8000 and also included the Dockerrun.aws.json file and only used this file as the image is already uploaded to Docker Hub
"AWSEBDockerrunVersion": "1",
"Image":
"Name": "njdocker2014/snakeeyes:2",
"Update": "true"
,
"Ports": [
"ContainerPort": 8000,
"HostPort": 8000
],
"Logging": "/var/log/snakeyes",
"Command": "gunicorn -b 0.0.0.0:8000 --access-logfile - 'snakeeyes.app:create_app()'"
Dockerfile as EXPOSE 8000
And The Docker is running in the EC2 Container as shown below,
[ec2-user@ip-172-31-47-66 ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dd757b4a0102 8af7a8cee988 "gunicorn -b 0.0.0.0…" 8 minutes ago Up 8 minutes 8000/tcp condescending_pare
When I access the EB DNS URL, it gives 404 not Found, And Even the Docker Logs also show same Error,
[2019-03-25 06:47:01 +0000] [10] [INFO] Booting worker with pid: 10
172.17.0.1 - - [25/Mar/2019:06:53:17 +0000] "GET / HTTP/1.1" 404 232 "-" "-"
What else to be done to send the request to port 8000 inside the container.
amazon-web-services docker amazon-elastic-beanstalk
I have created single Docker Python application. Tested it using the local Docker run and it works fine. I
I have exposed the Port 8000 and also included the Dockerrun.aws.json file and only used this file as the image is already uploaded to Docker Hub
"AWSEBDockerrunVersion": "1",
"Image":
"Name": "njdocker2014/snakeeyes:2",
"Update": "true"
,
"Ports": [
"ContainerPort": 8000,
"HostPort": 8000
],
"Logging": "/var/log/snakeyes",
"Command": "gunicorn -b 0.0.0.0:8000 --access-logfile - 'snakeeyes.app:create_app()'"
Dockerfile as EXPOSE 8000
And The Docker is running in the EC2 Container as shown below,
[ec2-user@ip-172-31-47-66 ~]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
dd757b4a0102 8af7a8cee988 "gunicorn -b 0.0.0.0…" 8 minutes ago Up 8 minutes 8000/tcp condescending_pare
When I access the EB DNS URL, it gives 404 not Found, And Even the Docker Logs also show same Error,
[2019-03-25 06:47:01 +0000] [10] [INFO] Booting worker with pid: 10
172.17.0.1 - - [25/Mar/2019:06:53:17 +0000] "GET / HTTP/1.1" 404 232 "-" "-"
What else to be done to send the request to port 8000 inside the container.
amazon-web-services docker amazon-elastic-beanstalk
amazon-web-services docker amazon-elastic-beanstalk
asked Mar 25 at 6:59
Nagesj JayaramNagesj Jayaram
1
1
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48
add a comment |
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f55332632%2faws-eb-single-docker-getting-404-error-already-exposed-8000-port%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f55332632%2faws-eb-single-docker-getting-404-error-already-exposed-8000-port%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
Since the docker logs printed 404, it means that your port mapping worked fine. It could be the application issue where it couldn't map the incoming URL to a controller properly.
– krisnik
Mar 25 at 10:11
The same App works outside simply if I run with publishing the ports docker run -p 8000:8000 -d snakeyes Now localhost:8000 works. But When it goes through EB it wont work. I even tried other Flask Apps, it works, but this Flask App is a Gunicron based. But I believe what you run inside the docker should not be the problem as long, it is able to get the request. What I am not understanding is that, why my Docker Python App is not accepting the connection
– Nagesj Jayaram
Mar 26 at 11:08
I have deployed many other apps with and without Docker in the AWS EB, and it has worked fine. But this is gunicron based Python flask app using the Single Docker Container. Very simple app with few routes and using few blueprints. But does not work when deployed through AWS EB.
– Nagesj Jayaram
Mar 26 at 14:48