docker 实录

SAT算法端:
docker build -t nufix_img . docker run -p 8999:8999 -it --name nufix nufix_img
docker login 
docker commit nufix smartisana
/nufix:latest
docker push smartisana
/nufix

docker pull smartisana/nufix:latest

docker run -p 8999:8999 -it --name nufix smartisana/nufix

docker run -it -p 8999:8999 --net nufix_net --ip 172.172.0.10 --name nufix nufix_img 

 

数据库端:

docker build -t nufix_database_img .
docker run -it --name nufix_database nufix_database_img 
docker login 
docker commit nufix_database smartisana/nufix_database:latest
docker push smartisana/nufix_database

docker pull smartisana/nufix_database:latest

docker run  -it --name nufix_database smartisana/nufix_database

 启动docker:

systemctl start docker

 

启动mysql:

service mysqld restart

posted @ 2022-04-03 15:46  博二爷  阅读(15)  评论(0编辑  收藏  举报