See Let's run WAS Liberty environment on Docker and try running WAS on Docker. To. First of all, I tried to install Docker-ToolBox, but I can not jump to the Docker-ToolBox download site from the link introduced on the above site. When I searched on Google, the download site of docker-ToolBox is https://www.docker.com/get-docker it seems like
If you do not choose to install Git when installing Docker, you need to specify the installed Git Bash in the shortcut path of "Docker Quickstart Terminal"
Double-click on Docker Quickstart Terminal
Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory
If you get the error, you need to set the virtualization on the BIOS of the OS. By the way, in order to launch the BIOS setting screen on Win10, it is necessary to go through "Update and Security" from the setting (Reference site) http://tanweb.net/2017/12/22/17401/
Execute the following command
docker pull websphere-liberty
Execute the following command
docker run -it websphere-liberty
Execute the following command
docker run -d -p 80:9080 --name wlp websphere-liberty
Execute the following command
docker logs --tail=all -f wlp
Execute the following command
docker-machine ip
docker-machine scp localhost:/docker/ci.docker.tutorials/app/ServletApp.war $(docker-machine active):/tmp/ServletApp.war
It is said that it will work,
[email protected]'s password:
Permission denied, please try again.
I was asked for a password for [email protected] that I don't remember setting, and it didn't work. It can't be helped, so I put WinSCP and put SCP, and I was able to upload the file to the virtual environment successfully.
Execute the following command
docker run -d -p 80:9080 --name=app -v /tmp/ServletApp.war:/config/dropins/app.war websphere-liberty
(Meaning of command) Guest /tmp/ServletApp.war on port 80 on the host side and port 9080 on the guest side Debrow a web application placed in
Execute the following command
docker ps
Execute the following command
- docker kill app
- docker rm app
FROM websphere-liberty
ADD ServletApp.war /config/dropins/app.war
docker run -d -p 80:9080 --name=app app
Recommended Posts