docker
BorisCao
这个作者很懒,什么都没留下…
展开
-
docker容器中安装vim
docker中安装vim工具原创 2022-07-25 11:34:25 · 1114 阅读 · 1 评论 -
docker制作image镜像
准备文件mkdir demo-dockercp demo-docker.jar demo-dockercp Dockfile demo-dockerDockfile文件FROM hub.xxx.com.cn:18880/cx/open-jdk:8RUN mkdir /opt/appCOPY demo-docker.jar /opt/app/EXPOSE 6084#CMD ["java", "-jar", "${JAVA_OPTS} /opt/app/demo-docker.jar"]原创 2022-04-13 14:39:37 · 470 阅读 · 0 评论 -
docker compose安装及实例
docker compose安装sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.26.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-composesudo ln -s /usr/local/bin/docker-compose /u原创 2022-04-13 14:28:37 · 1121 阅读 · 0 评论 -
docker安装
1.安装curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun2.启动服务systemctl daemon-reloadsystemctl restart docker.service3.配置docker镜像仓库echo '{ "insecure-registries":["hub.xxx.com.cn:18880"] }' > /etc/docker/daemon.jsonsystemctl restart原创 2022-04-13 13:55:25 · 948 阅读 · 0 评论 -
docker安装tomcat,访问界面404错误
docker安装tomcat,访问界面404错误描述:运用docker安装tomcat,安装后日志正常,但是访问界面是404docker pull tomcat:10docker run --name tomcat -d -p 8080:8080 tomcat:10docker logs -f tomcat # 日志正常发现在webapps中目录为null,真正的目录在webapps.distdocker exec -it tomcat /bin/bashrm -rf webapps原创 2020-12-31 17:07:33 · 196 阅读 · 0 评论