随笔分类 -  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 阅读全文
posted @ 2020-09-13 22:19 Zhentiw 阅读(202) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2020-05-18 18:03 Zhentiw 阅读(141) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-06-15 18:58 Zhentiw 阅读(384) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-26 16:15 Zhentiw 阅读(933) 评论(0) 推荐(0) 编辑
摘要:The benfits of multi-stage builds: Avoid manual creation of intermediate images Reduce complexity Selectively copy artifacts from one stage to another 阅读全文
posted @ 2019-04-23 22:14 Zhentiw 阅读(149) 评论(0) 推荐(0) 编辑
摘要:When we develop the Angular app inside Docker container, we can simulate Production envioment by build Angualr App instead of using 'ng serve': '--del 阅读全文
posted @ 2019-04-17 18:36 Zhentiw 阅读(806) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-13 21:36 Zhentiw 阅读(483) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-04-09 02:09 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2019-04-09 01:35 Zhentiw 阅读(1) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-05 16:34 Zhentiw 阅读(231) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-04 17:21 Zhentiw 阅读(154) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-04-03 15:29 Zhentiw 阅读(224) 评论(0) 推荐(0) 编辑
摘要:Create a Dockerfile: Build Dockerfile: Run image: 阅读全文
posted @ 2019-04-01 19:33 Zhentiw 阅读(217) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2019-03-31 19:06 Zhentiw 阅读(186) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-07-21 20:20 Zhentiw 阅读(246) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-04-25 21:15 Zhentiw 阅读(321) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-04-25 16:25 Zhentiw 阅读(262) 评论(0) 推荐(0) 编辑
摘要: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- 阅读全文
posted @ 2017-04-21 19:48 Zhentiw 阅读(546) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2017-04-21 19:27 Zhentiw 阅读(271) 评论(0) 推荐(0) 编辑
摘要:image: stopped container Run a container: Run in background. Stop it: Start it again: Stop all the running containers: Remove all the containers: remo 阅读全文
posted @ 2017-03-08 03:23 Zhentiw 阅读(268) 评论(0) 推荐(0) 编辑

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