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]#
  • 相关阅读:
    如何配置寄存器
    逻辑分析仪的使用
    CAN中如何计算波特率并配置波特率
    led不同颜色的驱动电压和驱动电流
    ULINK2配置
    电机加减速转动
    2N7002
    未添加时钟文件产生报错
    烟雾传感器
    Strategy 设计模式 策略模式 超靠谱原代码讲解
  • 原文地址:https://www.cnblogs.com/ooo888ooo/p/13647117.html
Copyright © 2011-2022 走看看