随笔分类 -  Docker

摘要:Storing data within a container image is one option for automating a container with data, but it requires a copy of the data to be in each container y 阅读全文
posted @ 2023-01-27 02:43 Zhentiw 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Pull httpd image and run the container [cloud_user@ip-10-0-1-78 ~]$ docker pull httpd:2.4 [cloud_user@ip-10-0-1-78 ~]$ docker run --name webtemplate - 阅读全文
posted @ 2023-01-25 15:06 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Pull httpd:latest image Normally you want to attach the version httpd:2.4, because everytime you run the image, we with the same version is running. b 阅读全文
posted @ 2023-01-25 04:25 Zhentiw 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Provision a Kubernetes Cluster with GKE using gcloud To complete the work in this course you going to need some tools. Kubernetes can be configured wi 阅读全文
posted @ 2022-05-29 22:57 Zhentiw 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Base container can make Docker build much faster. Our original Dockerfile contained a lot of code to install NodeJS that takes a long time to run. Ins 阅读全文
posted @ 2021-03-31 14:06 Zhentiw 阅读(154) 评论(0) 推荐(0) 编辑
摘要:1. Pull the docker image docker pull isjustintime/debug-me:latest 2. Run the image: docker run -d isjustintime/debug-me 3. Check docker is running: do 阅读全文
posted @ 2021-03-29 21:24 Zhentiw 阅读(76) 评论(0) 推荐(0) 编辑
摘要:Docker containers should be designed to be stateless, meaning that they can survive system reboots and container terminations gracefully, and without 阅读全文
posted @ 2021-02-03 15:54 Zhentiw 阅读(74) 评论(0) 推荐(0) 编辑
摘要:A properly scaled Docker architecture should be able to kill off random containers at any time, and continue to run by implementing a crash-only desig 阅读全文
posted @ 2021-02-03 02:06 Zhentiw 阅读(47) 评论(0) 推荐(0) 编辑
摘要:docker tag k8scourse-front <yourname>/k8scourse-front docker tag k8scourse-back <yourname>/k8scourse-back docker push <yourname>/k8scourse-front docke 阅读全文
posted @ 2021-02-01 03:50 Zhentiw 阅读(90) 评论(0) 推荐(0) 编辑
摘要:So far, you’ve managed to get all of your containers running on your local machine. That is great for your development environment and you are almost 阅读全文
posted @ 2021-02-01 03:44 Zhentiw 阅读(625) 评论(0) 推荐(0) 编辑
摘要:This lesson uses some advanced concepts and some bash scripting to build a better Dockerfile. By using the concepts showed here, you will be able to b 阅读全文
posted @ 2021-02-01 03:43 Zhentiw 阅读(268) 评论(0) 推荐(0) 编辑
摘要:Docker containers that are running on your local machine can't communicate with each other. In this mini post explains why and shows a demonstration o 阅读全文
posted @ 2021-01-31 18:05 Zhentiw 阅读(95) 评论(0) 推荐(0) 编辑
摘要:Starting up our server and running the curl command curl localhost:3000/health, we find that we get an error. Our server is complaining about us not h 阅读全文
posted @ 2021-01-30 21:46 Zhentiw 阅读(89) 评论(0) 推荐(0) 编辑
摘要:Running MySQL in a Docker Container is great for being able to emulate various environments. The more advanced containers will include a bunch of exec 阅读全文
posted @ 2021-01-30 21:22 Zhentiw 阅读(63) 评论(0) 推荐(0) 编辑
摘要:Containers can be very useful to emulate various environments. You can also use much more complex containers. In this case, we had a container with a 阅读全文
posted @ 2021-01-30 21:12 Zhentiw 阅读(85) 评论(0) 推荐(0) 编辑
摘要:<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>c 阅读全文
posted @ 2020-12-27 22:59 Zhentiw 阅读(93) 评论(0) 推荐(0) 编辑
摘要:application-docker.properties: spring.datasource.url=jdbc:mysql://${server}:${port}/explorecali spring.datasource.username=${dbuser} spring.datasource 阅读全文
posted @ 2020-12-27 22:52 Zhentiw 阅读(115) 评论(0) 推荐(0) 编辑
摘要:application-mysql.properties: spring.datasource.url=jdbc:mysql://ec-mysql:3306/explorecali spring.datasource.username=cali_user spring.datasource.pass 阅读全文
posted @ 2020-12-27 22:44 Zhentiw 阅读(76) 评论(0) 推荐(0) 编辑
摘要:Before build the docker file, build the jar package: mvn package -DskipTests=true Dockerfile: FROM java:8 WORKDIR / ADD target/explorecali-2.0.0-SNAPS 阅读全文
posted @ 2020-12-27 22:32 Zhentiw 阅读(73) 评论(0) 推荐(0) 编辑
摘要:Extending, Securing and Dockerizing Spring Boot Microservices Final Product requires External MySql Database. Install Docker For Mac/Windows/Linux ### 阅读全文
posted @ 2020-12-27 22:23 Zhentiw 阅读(76) 评论(0) 推荐(0) 编辑

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