树莓派上运行docker

来源:互联网 发布:淘宝号信誉等级查询 编辑:程序博客网 时间:2024/06/06 04:36

设置源

echo 'deb http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib\ndeb-src http://mirrors.aliyun.com/raspbian/raspbian/ wheezy main non-free contrib' | sudo tee /etc/apt/sources.list.d/alinyun.listecho 'deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main' | sudo tee /etc/apt/sources.list.d/hypriot.list

安装docker

sudo apt-get install -y apt-transport-httpswget -q https://packagecloud.io/gpg.key -O - | sudo apt-key add -sudo apt-get updatesudo apt-get install -y docker-hypriotsudo systemctl enable docker

使用

#查看版本docker -v    Docker version 1.11.1#搜索dockerdocker search xxx#查看已下载镜像docker images

相关网站

  1. https://www.docker.com/
  2. https://www.docker-cn.com/
  3. https://packagecloud.io
  4. 树莓派+Docker—轻松打造自己的智能家居控制中心
原创粉丝点击