![]() ![]() These are just some of the more commonly used. Of course there are more options for running JDKs in Docker containers. #!/bin/bashĭocker rmi $(docker images -q) Options for JDK Good to know is how to clean up your images/containers after having played around with them. For Oracle Linux and Ubuntu you can also use /bin/bash. ‘tail -f /dev/null’ is used to start a ‘bare OS’ container with no other running processes to keep it running. bin/sh exists in Alpine Linux, Oracle Linux and Ubuntu. To ‘enter’ a running container: docker exec -it mycontainer /bin/sh To start a container in the background docker run -name mycontainer -d imagename tail -f /dev/null To start a container in the foreground docker run -name mycontainer -it imagename /bin/sh
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |