当前位置:网站首页>Docker uses redis image
Docker uses redis image
2022-06-11 15:44:00 【Ant】
Docker Use redis Mirror image
Redis It's an open source , Networked , Key value data storage in memory , With optional persistence .
install redis
docker pull redis
start-up Docker example
docker run --name some-redis -d redis
perhaps Start with persistent storage :
docker run --name some-redis -d redis redis-server --appendonly yes
Bind local port :
docker run --name dev-redis -p 6379:6379 -d redis redis-server --appendonly yes
perhaps adopt redis-cli
docker run -it --link some-redis:redis --rm redis redis-cli -h redis -p 6379
in addition , If you want to use your own redis.conf ……
You can create your own Dockerfile, The redis.conf Add to / data / in , Just like this. :
FROM redis COPY redis.conf /usr/local/etc/redis/redis.conf CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
perhaps , You can use docker run Option specifies something in the same row :
docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf \ --name myredis redis redis-server /usr/local/etc/redis/redis.conf
Sharing plans
Blog content will be synchronized to Tencent cloud + Community , Invite everyone to join us :https://cloud.tencent.com/
license agreement
In this paper A signature - Noncommercial use - Share in the same way 4.0 The international license agreement , Reprint please indicate the source .
边栏推荐
- Zero foundation self-study software test, I spent 7 days sorting out a set of learning routes, hoping to help you
- Performance of MOS transistor 25n120 of asemi in different application scenarios
- 2022 Tibet's latest eight major construction personnel (labor workers) simulation test question bank and answers
- Understanding of oauth2
- openGauss简单查询SQL的执行流程解析
- 一文教会你数据库系统调优
- Iclr2022| small sample fine tuning method of language model based on differentiable hints
- openGauss 多线程架构启动过程详解
- openGauss企业版安装
- 浅析分布式系统之体系结构-事务与隔离级别(多对象、多操作)下篇
猜你喜欢

【0006】title、關鍵字及頁面描述

02 _ 日志系统:一条SQL更新语句是如何执行的?

openGauss数据库性能调优概述及实例分析

openGauss企业版安装

一文教会你数据库系统调优

openGauss 多线程架构启动过程详解

Implementation of the function of recording login status

07 _ Functions and disadvantages of row lock: how to reduce the impact of row lock on performance?

浅析分布式系统之体系结构-事务与隔离级别(多对象、多操作)下篇

Understanding of oauth2
随机推荐
前沿科技探究DeepSQL:库内AI算法
了解下openGauss的密态支持函数/存储过程
Lick the dog till the last one has nothing (linear DP)
Daily blog - wechat service permission 12 matters
[mysql_12] MySQL data types
openGauss简单查询SQL的执行流程解析
Let me tell you the benefits of code refactoring
Art plus online school: Sketch common sitting posture test questions, these three angles must be mastered~
前沿科技探究之AI在索引推荐的应用
2022年软件测试的前景如何?需不需要懂代码?
openGauss企业版安装
Zero foundation self-study software test, I spent 7 days sorting out a set of learning routes, hoping to help you
openGauss数据库闪回功能验证
Oauth2的理解
前沿科技探究之AI工具:Anomaly-detection
Don't you understand the design and principle of thread pool? Break it up and crush it. I'll teach you how to design the thread pool
[mysql_11] addition, deletion and modification of data processing
做自媒体剪辑真的能挣钱吗?
知网被立案调查;字节跳动成立抖音集团,或在港上市;钉钉被曝裁员30%;北京人均存款超20万元 |Q资讯
Number system conversion (function)