随笔分类 - 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
阅读全文
摘要: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 -
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Docker containers should be designed to be stateless, meaning that they can survive system reboots and container terminations gracefully, and without
阅读全文
摘要: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
阅读全文
摘要:docker tag k8scourse-front <yourname>/k8scourse-front docker tag k8scourse-back <yourname>/k8scourse-back docker push <yourname>/k8scourse-front docke
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <plugin> <groupId>c
阅读全文
摘要:application-docker.properties: spring.datasource.url=jdbc:mysql://${server}:${port}/explorecali spring.datasource.username=${dbuser} spring.datasource
阅读全文
摘要:application-mysql.properties: spring.datasource.url=jdbc:mysql://ec-mysql:3306/explorecali spring.datasource.username=cali_user spring.datasource.pass
阅读全文
摘要: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
阅读全文
摘要:Extending, Securing and Dockerizing Spring Boot Microservices Final Product requires External MySql Database. Install Docker For Mac/Windows/Linux ###
阅读全文