First, open it docker Configuration file for
vim /usr/lib/systemd/system/docker.service
2 stay ExecStart The port of the link is appended after
-H tcp://0.0.0.0:2375 -H unix://var/run/docker.sock
Save configuration
3 restart docker
systemctl daemon-reload systemctl restart docker
Here's right idea To download a plugin from
Download it and restart it idea
Configuration link docker
open settings find docker
to configure docker
tcp://Linux Or alicloud ip:2375
establish docker File for
stay src/main Create in directory docker catalog , Then create it in this directory Dockerfile file
FROM openjdk:8-jdk-alpine ADD *.jar app.jar ENTRYPOINT
["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
establish docker image
1.
2.
to configure
Mapping ports
Change the configuration file my mysql Also in docker upper
Configure it and start packing the project
Package it and put it in the created one docker In the catalogue
Click Run
Take a look after running docker image
docker images
See if the container is started
It's working
ip+ Configure the port to access it
That's all we need to do You can access it normally
Technology
Daily Recommendation