随笔分类 - Docker
摘要:In this lesson, we add a Docker configuration to our project. In the Dockerfile we specify the different layers of our Docker image. We use a pretty s
阅读全文
摘要:When we need to spin up a database instance for our new project, installing the database management system directly on our local machine is almost alw
阅读全文
摘要:For example you are working in a backend project, you have setup Dockerfile: Here is the .env: Because we want to setup Database as well, therefore we
阅读全文
摘要:The code is from Plusight course, github link is here. In this post, we will give a overview about how to setup Docker for a Angular, Node application
阅读全文
摘要:The benfits of multi-stage builds: Avoid manual creation of intermediate images Reduce complexity Selectively copy artifacts from one stage to another
阅读全文
摘要:When we develop the Angular app inside Docker container, we can simulate Production envioment by build Angualr App instead of using 'ng serve': '--del
阅读全文
摘要:kompose is a tool to help users who are familiar with docker-compose move to Kubernetes. kompose takes a Docker Compose file and translates it into Ku
阅读全文
只有注册用户登录后才能阅读该文。
只有注册用户登录后才能阅读该文。
摘要:In previous post we have seen how to link two container together by using `--link`: In this poist, we are going to see how to create brige network, an
阅读全文
摘要:It is possible to group containers into a network and we can create multi networks so that container in each isolated network can communiate with each
阅读全文
摘要:To do communcation between containers, we need to do link between containers. 1. Run a container with a name Give a name call 'my-postgres' 2. Link to
阅读全文
摘要:Create a Dockerfile: Build Dockerfile: Run image:
阅读全文
摘要:Normally when you create a Volume, it will store in Docket Host, you can also tell the folder which you want docket to store the volume. You can check
阅读全文
摘要:Docker containers are stateless by default. In order to persist filesystem changes, you must use docker volumes. In this lesson, we will go over how t
阅读全文
摘要:In this lesson, we will look at docker container prune to remove old docker containers. We can also use docker system prune to clean up any containers
阅读全文
摘要:In this lesson we will cover how to build your own custom Docker image from scratch. We'll walk through the process of starting a Debian container, in
阅读全文
摘要:We can create volumn to keep the data, even we stop the container and restart again, the data won't get lost. To create a link between the folder /my-
阅读全文
摘要:If you want to get into container and look around, you can use: to run against a running container. And to do that, we need to know the id / name of t
阅读全文
摘要:image: stopped container Run a container: Run in background. Stop it: Start it again: Stop all the running containers: Remove all the containers: remo
阅读全文