美文网首页
Chapter1. Docker installation

Chapter1. Docker installation

作者: liuyangcc | 来源:发表于2017-11-28 14:57 被阅读0次

    docker installation

    • 安装之前你必须是root用户,否则是无法安装的,执行命令安装
    # yum install docker
    
    • 查看安装的docker版本
    [docker@localhost ~]$ docker -v
    Docker version 1.12.6, build 85d7426/1.12.6
    
    • start docker, maybe password is needed
    [docker@localhost ~]$ service docker start
    Redirecting to /bin/systemctl start docker.service
    
    • run docker "hello-world" to see if it will work
    [docker@localhost ~]$ docker run hello-world
    
    Hello from Docker!
    This message shows that your installation appears to be working correctly.
    
    • 查看当前docker信息
    $ docker info
    

    相关文章

      网友评论

          本文标题:Chapter1. Docker installation

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