You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "harish sat (JIRA)" <ji...@apache.org> on 2017/03/20 19:14:41 UTC

[jira] [Commented] (DIRSERVER-2182) Apaches 2.0.0-M23 embedded instance cannot run correctly within docker container

    [ https://issues.apache.org/jira/browse/DIRSERVER-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933336#comment-15933336 ] 

harish sat commented on DIRSERVER-2182:
---------------------------------------

The fix for this/patch I used is : Instead of 
TcpTransport ldapTransport= new TcpTransport(configuration.getHostName(), configuration.getPort(), configuration.getNbThreads(),
				configuration.getBacklog());

Hostname/IP: localhost/127.0.0.1 (does not work)
Hostname/IP: 0.0.0.0 (works)

The above code does not bind to a given port with either hostname/IP Address(127.0.0.1) unless the IP is IPv4 addresses on the local machine (0.0.0.0). 

The constructor should be able to accept hostname and bind to the port as well.



> Apaches 2.0.0-M23 embedded instance cannot run correctly within docker container
> --------------------------------------------------------------------------------
>
>                 Key: DIRSERVER-2182
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2182
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M23
>         Environment: ApacheDS Embedded instance, dropwizard and Docker 2.x
>            Reporter: harish sat
>             Fix For: 2.0.0-M23
>
>
> While running current instance within docker container, the ldapserver does not bind on a specified port, no error message or exception thrown. It works fine as a standalone instance but there is a problem within docker container



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)