Docker Java Application failing at obtaining input from console
问题 I am trying to create a docker image for my java application. At startup this application needs to be given a password (currently via console). I tried several methods of obtaining input however they have all failed. Is this a limitation of docker and if so is there a workaround? For this snippet: Console console = System.console(); if(console == null){ System.out.println("console is null!!"); } else { System.out.println("Input password: "); char[] password = console.readPassword("Pass: "); }