随笔分类 -  docker

摘要:Dockerfile中RUN,CMD和ENTRYPOINT都能够用于执行命令,下面是三者的主要用途: RUN命令:执行命令并创建新的镜像层,通常用于安装软件包 CMD命令:设置容器启动后默认执行的命令及其参数,但CMD设置的命令能够被docker run命令后面的命令行参数替换 ENTRYPOINT 阅读全文
posted @ 2023-02-01 09:09 beawh 阅读(221) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2022-12-06 09:23 beawh 阅读(0) 评论(0) 推荐(0) 编辑
摘要:C:\Users\zhangxiaokang\Desktop\233 [root@zxk ~]# cd /root/kubesphere/[root@zxk kubesphere]# lltotal 23100-rwxrwxrwx 1 root root 11963040 Sep 22 01:56 阅读全文
posted @ 2022-09-22 08:14 beawh 阅读(137) 评论(0) 推荐(0) 编辑
摘要:wget https://www.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.tar.gz tar -zxvf util-linux-2.24.tar.gz && cd util-linux-2.24/ ./configur 阅读全文
posted @ 2022-04-29 13:55 beawh 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-20 16:43 beawh 阅读(13) 评论(0) 推荐(0) 编辑
摘要:[root@muze1 ~]$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESc6c7d03b2e98 centos:7.6.1810 "/usr/sbin/init" 4 seconds ago Up 2 seconds 阅读全文
posted @ 2021-06-11 15:50 beawh 阅读(676) 评论(0) 推荐(0) 编辑
摘要:1、准备好jdk和tomcatapache-tomcat-8.5.63.tar.gzjdk-8u162-linux-x64.tar.gz 注意:a、jdk和tomcat记得从官网下载,否则制作出来的镜像容易出现不兼容问题。b、apache-tomcat-8.5.63.tar.gz、jdk-8u162 阅读全文
posted @ 2021-06-04 11:30 beawh 阅读(482) 评论(0) 推荐(0) 编辑
摘要:1、查看已有的镜像 # docker images 2、运行镜像 # docker run -d --name zxk-mysql -e MYSQL_ROOT_PASSWORD=my123456 -p 13306:3306 -v /data/mytest:/var/lib/mysql -d 后台运行 阅读全文
posted @ 2021-06-03 18:06 beawh 阅读(50) 评论(0) 推荐(0) 编辑
摘要:公司准备 上云,所以 先从一个mysql的镜像服务开始吧! [root@muze1 ~]# docker search mysql [root@muze1 ~]# docker pull mysqlUsing default tag: latestlatest: Pulling from libra 阅读全文
posted @ 2021-06-03 17:49 beawh 阅读(2182) 评论(0) 推荐(0) 编辑
摘要:公司准备将 j2ee的project上阿里云搬到 docker里,所以,先从一个tomcat的镜像开始吧! [root@muze1 ~]# docker pull tomcatUsing default tag: latestlatest: Pulling from library/tomcatDi 阅读全文
posted @ 2021-06-03 16:55 beawh 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-05-30 18:22 beawh 阅读(127) 评论(0) 推荐(0) 编辑
摘要:参考如下: Installing WebLogic 12.1.3 with Docker (easier) If you work on a Linux-based machine as your development environment and you aren't familiar wit 阅读全文
posted @ 2021-05-27 10:11 beawh 阅读(144) 评论(0) 推荐(0) 编辑
摘要:查看运行容器: [root@muze1 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES9180d1c09867 cloudquery.tencentcloudcr.com/cloudquery/community 阅读全文
posted @ 2021-05-25 23:34 beawh 阅读(845) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/python-wen/p/10614078.html 1、安装需要依赖的软件包, yum-util 提供yum-config-manager功能、另外两个是devicemapper驱动依赖的 。[root@localhost yum.repos.d]# 阅读全文
posted @ 2020-07-10 15:58 beawh 阅读(3452) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示