课程: Databases for Node.js Developers

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Setting up Redis with Docker

Setting up Redis with Docker

- [Instructor] Redis is a high performance in-memory key-value store, often used for caching, session management, and real time data processing. In this video, we'll set up Redis using Docker, very similar to what we did with MySQL and MongoDB before. So we start with writing docker pull redis, and while I'm doing that, yeah, let's make sure Docker is running. So it is running. If it's not running for you, just start your Docker demon or desktop again. Now it's downloading. Now that we have the image, we want to start a container with it. So I type docker run --name, that's the name of the container, redis -p. And I, again, use the default port Redis is expected to run on and map this one on my local machine to the one in the container. So it looks like as if Redis would run locally, 6379, and then I also have to tell Docker which image to use with -d and then write redis. And now when a type Docker appears, you see that I'm having a MongoDB on my MySQL and a Redis container running…

内容