zoukankan      html  css  js  c++  java
  • docker 中安装和启动 redis

    之前配置文件方式不知道为什么没有启动起来, 先手动启动下, 其他待定

    [vagrant@localhost ~]$ su root
    Password:
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]# docker pull redis
    Using default tag: latest
    latest: Pulling from library/redis
    Digest: sha256:ea0411481eef6fd90b3ee86cca2b580a8583a1f405d4d8cefe822a08df7068e3
    Status: Image is up to date for redis:latest
    docker.io/library/redis:latest
    [root@localhost vagrant]# docker ps
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                               NAMES
    93aa946bdbe2        mysql:5.7           "docker-entrypoint.s…"   2 hours ago         Up About an hour    0.0.0.0:3306->3306/tcp, 33060/tcp   mysql
    [root@localhost vagrant]# docker run --name some-redis -d redis
    8d9953c0e062750b1fae87a5dd62946af526f9e9da1213fb3e5eb129a5f5f6fc
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]# docker ps
    CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                               NAMES
    8d9953c0e062        redis               "docker-entrypoint.s…"   7 seconds ago       Up 5 seconds        6379/tcp                            some-redis
    93aa946bdbe2        mysql:5.7           "docker-entrypoint.s…"   2 hours ago         Up About an hour    0.0.0.0:3306->3306/tcp, 33060/tcp   mysql
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
    [root@localhost vagrant]#
  • 相关阅读:
    update 更改字段
    查看 links
    oracle 统计字段空值数
    查看oracle 数据库编码个格式
    oracle 数据库DBA权限
    一文弄懂 Golang 排序
    Golang Linux、Windows、Mac 下交叉编译
    go 简单封装数学运算包
    [Vue warn]: Unknown custom element: did you register the component correctly?
    深度图怎么看行情走势
  • 原文地址:https://www.cnblogs.com/ooo888ooo/p/13647117.html
Copyright © 2011-2022 走看看