美文网首页
linux上docker安装redis

linux上docker安装redis

作者: 杨肆月 | 来源:发表于2021-08-27 14:27 被阅读0次

    sudo docker pull redis

    sudo docker images

    REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
    docker.io/redis latest a6edd7a55846 9 days ago 105.4 MB

    sudo docker run -d redis

    f141e7a97aa9652191b7583d118561d63b952510c3603770f22ae36001b6d2d3

    sudo docker ps

    CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    f141e7a97aa9 redis:latest "docker-entrypoint.s 28 seconds ago Up 26 seconds sad_hodgkin

    sudo docker exec -it sad_hodgkin bash

    进入了

    相关文章

      网友评论

          本文标题:linux上docker安装redis

          本文链接:https://www.haomeiwen.com/subject/nuemiltx.html