日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

docker run redis

發布時間:2025/7/25 编程问答 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 docker run redis 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
#拉取 Redis 鏡像 C:\Users\WYJ>docker pull redis Using default tag: latest latest: Pulling from library/redis 683abbb4ea60: Already exists 259238e792d8: Pull complete 78399601c709: Pull complete f397da474601: Pull complete c57de4edc390: Pull complete b2ea05c9d9a1: Pull complete Digest: sha256:5534b92530acc653f0721ebfa14f31bc718f68bf9070cbba25bb00bc7aacfabb Status: Downloaded newer image for redis:latest#查看拉取的鏡像 C:\Users\WYJ>docker images REPOSITORY TAG IMAGE ID CREATED SIZE redis latest 71a81cb279e3 4 days ago 83.4MB#運行鏡像容器 C:\Users\WYJ>docker run -p 6379:6379 --name redis -v /d/docker/data/redis:/data -d redis redis-server --appendonly yes f7033e3efc840c921a125c8cdeb8c1747a75e7e950444c4265bf3d2fa0c3df7f#查看運行容器日志 C:\Users\WYJ>docker logs redis 1:C 01 Jul 07:58:28.663 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 1:C 01 Jul 07:58:28.663 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=1, just started 1:C 01 Jul 07:58:28.663 # Configuration loaded 1:M 01 Jul 07:58:28.666 * Running mode=standalone, port=6379. 1:M 01 Jul 07:58:28.667 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128. 1:M 01 Jul 07:58:28.667 # Server initialized 1:M 01 Jul 07:58:28.667 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 1:M 01 Jul 07:58:28.668 * Ready to accept connections#查看運行的容器 C:\Users\WYJ>docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f7033e3efc84 redis "docker-entrypoint.s…" 17 seconds ago Up 15 seconds 0.0.0.0:6379->6379/tcp redis#進入容器內 C:\Users\WYJ>docker exec -it redis redis-cli 127.0.0.1:6379>

?

轉載于:https://www.cnblogs.com/code-Jun/p/9535213.html

總結

以上是生活随笔為你收集整理的docker run redis的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。