Cannot access Docker container when starting via plugin
Hi,
I am facing a probably very basic problem with PyCharm or - more specific - the Docker Integration plugin. We have a working Dockerfile which creates a basic Hello World web app. We can access the app successfully after starting the comtainer from command line. If we use the command line parameters to let the plugin create a JSON file for us the web app is not accessible.
Command line: docker run -p 8080:8080 image_name
The JSON file contains:
{
"AttachStdin" : true,
"OpenStdin" : true,
"Image" : "",
"Volumes" : { },
"ExposedPorts" : { },
"HostConfig" : {
"Binds" : [ ],
"PortBindings" : {
"8080/tcp" : [ {
"HostIp" : "",
"HostPort" : "8080"
} ]
}
},
"_comment" : ""
}
What am I missing here?
Maik
Please sign in to leave a comment.
Could you please check Port Bindings tab of the container you create with PyCharm in Docker tool window? Is there some misconfiguration?