Alpine中安装docker

2021-02-19  本文已影响0人  大地缸

title: "Alpine中安装docker"
date: 2021-02-09T18:29:51+08:00
draft: true
tags: ['alpine','docker']
author: "dadigang"
author_cn: "大地缸"
personal: "http://www.real007.cn"


关于作者

http://www.real007.cn/about

alpine linux 环境中安装 docker

alpine 环境中安装 docker

下载

VMware 中安装

设置 alpine

apk 介绍

安装 docker

运行

localhost:/etc/docker# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:0e11c388b664df8a27a901dce21eb89f11d8292f7fca1b3e3c4321bf7897bffe
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

问题

localhost:~# docker ps
Cannot connect to the Docker daemon at unix:///var/rundocker.sock. Is   the docker daemon running?

cat ./var/log/docker.log

localhost:/etc/docker# rc-update add docker boot
* service docker added to runlevel boot
localhost:/etc/docker# service docker start
* Mounting cgroup filesystem ...
* Starting docker ...

总结

打开App,阅读手记

上一篇 下一篇

猜你喜欢

热点阅读