Tools, FAQ, Tutorials:
"openjdk" Docker Image for Windows
What is the "openjdk" Docker Image for Windows?
✍: FYIcenter.com
"openjdk" Docker Image for Windows provides a Docker container of
as a Java development environment.
1. Create a container from the "openjdk" image.
C:\fyicenter> docker container create --name java --tty --interactive openjdk
2. Start the container with the console attached to the TTY terminal and interact with the default command.
C:\fyicenter> docker container start --attach --interactive java jshell> 1+2; $1 ==> 3 jshell>
3. Open another window and connect to the container interactive running the CMD shell:
C:\fyicenter> docker exec --tty --interactive java cmd
icrosoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\>dir
Volume in drive C has no label.
Volume Serial Number is 0A75-E93E
Directory of C:\
1,894 License.txt
openjdk-12
PerfLogs
Program Files
Program Files (x86)
Users
Windows
Ok, we are able to run a "openjdk" container and see its root directory.
⇒ Build My Java Image with "openjdk"
⇐ Run PowerShell Commands in Dockerfile
2022-01-24, ∼1672🔥, 0💬
Popular Posts:
How to include additional claims in Azure AD v2.0 id_tokens? If you want to include additional claim...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1....
Tools, FAQ, Tutorials: JSON Validator JSON-XML Converter XML-JSON Converter JSON FAQ/Tutorials Pytho...