`
sillycat
  • 浏览: 2539017 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Play Raspberry Pi(6)Upgrade and Docker

 
阅读更多
Play Raspberry Pi(6)Upgrade and Docker

Download the latest file again from here https://www.raspberrypi.org/downloads/raspbian/

The file is  2016-05-27-raspbian-jessie-lite.img

following this link
http://sillycat.iteye.com/blog/2166582

1 Set up Network
The installation is fine and I set up user carl. But it seems some difference to set up the static IP.
http://www.jeffgeerling.com/blog/2016/setting-static-ip-address-raspbian-jessie-lite-on-raspberry-pi

> cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.0.198
gateway 192.168.0.1
netmask 255.255.255.0
dns-nameservers 8.8.8.8 8.8.4.4

allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

And I need to change another config file for this new version.
> cat /etc/dhcpcd.conf
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

…snip...
interface eth0
static ip_address=192.168.0.198
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4

2 Set up Disk
http://sillycat.iteye.com/blog/2254550

>sudo apt-get install ntfs-3g
>sudo fdisk -l
>sudo mkdir /mnt/driver1
>sudo mount -t auto /dev/sda1 /mnt/driver1

Give more AC Power to USB
>sudo vi /boot/config.txt
Add this 2 lines and reboot the system.
max_usb_current=1
safe_mode_gpio=4

3 Set up Docker on Server
http://sillycat.iteye.com/blog/2264110

https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/downloads/

download the latest docker file
> wget https://downloads.hypriot.com/docker-hypriot_1.10.3-1_armhf.deb

Install that on the server
> sudo dpkg -i docker-hypriot_1.10.3-1_armhf.deb

enable the sudo er to run it
> sudo usermod -aG docker carl

> sudo systemctl enable docker.service

Reboot the system, then we can use
> docker images

> docker ps

> docker info

Configure docker to using USB drivers.
> cat /etc/default/docker
# Docker Upstart and SysVinit configuration file

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"
DOCKER_OPTS="--storage-driver=overlay -D -g /opt/docker"

Check the docker Information
>docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.10.3
Storage Driver: overlay
Backing Filesystem: <unknown>
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.4.11+
Operating System: Raspbian GNU/Linux 8 (jessie)
OSType: linux
Architecture: armv6l
CPUs: 1
Total Memory: 434.7 MiB
Name: raspberrypi1
ID: V467:PPZX:4MYC:SQXY:QHOD:KKM3:7WKN:SGY4:RSGV:MXV3:R4QG:W4BV
Debug mode (server): true
File Descriptors: 11
Goroutines: 20
System Time: 2016-06-16T11:23:08.393869157-05:00
EventsListeners: 0
Init SHA1: 0db326fc09273474242804e87e11e1d9930fb95b
Init Path: /usr/lib/docker/dockerinit
Docker Root Dir: /mnt/driver1/data/docker
WARNING: No swap limit support
WARNING: No cpu cfs quota support
WARNING: No cpu cfs period support
WARNING: No cpuset support

Yeah, start to set up mongo, ftp and all other things in docker.
http://sillycat.iteye.com/blog/2264656
http://sillycat.iteye.com/blog/2255064

References:
https://www.raspberrypi.org/downloads/raspbian/

https://github.com/umiddelb/armhf/wiki/Get-Docker-up-and-running-on-the-RaspberryPi-(ARMv6)-in-four-steps-(Wheezy)
http://blog.hypriot.com/post/run-docker-rpi3-with-wifi/
http://sillycat.iteye.com/blog/2166582
分享到:
评论

相关推荐

    Advanced Raspberry Pi Raspbian Linux and GPIO Integration.zip

    You'll work with Linux driver information and explore the different Raspberry Pi models, including the Pi Zero, Pi Zero W, Pi 2, Pi3 B and Pi3 B+. You'll also review a variety of project examples ...

    Raspberry Pi Zero Cookbook

    The Raspberry Pi Zero, one of the most inexpensive, fully-functional computers available, is a powerful and revolutionary product developed by the Raspberry Pi Foundation. The Raspberry Pi Zero opens ...

    Raspberry Pi 4 Beginner’s Guide.pdf

    介绍Raspberry Pi 4的用户手册,值得一读。 In our opinion, you will certainly adore the Raspberry Pi 4. Ultra-small, affordable, even cheaper than most video games, you can use the Pi to build ...

    Getting Started with Raspberry Pi Zero.pdf

    Get started with Raspberry Pi Zero and put all of its exciting features to use Create fun games and programs with little or no programming experience Learn to use this super-tiny PC to control ...

    Raspberry Pi

    MEDIA CENTER WITH XBMC AND RASPBERRY PI 2 MINIATURE BALLOON MINECRAFT SERVER RUNNING ON RASPBERRY PI 2 CHAPTER 3: USING THE RASPBERRY PI 2FOR YOUR PROJECT DIFFERENCES BETWEEN THE ARDUINO BOARD AND ...

    Raspberry.Pi.Computer.Architecture.Essentials.17843

    Explore Raspberry Pi 2's hardware through the Assembly, C/C++, and Python programming languages Experiment with connecting electronics up to your Raspberry Pi 2 and interacting with them through ...

    Raspberry Pi Supercomputing and Scientific Programming

    使用Raspberry Pi 进行这些活动可能会有局限性,因为它们的处理能力并不足以匹敌真正的超级计算机,但是通过使用多个 Raspberry Pi 组成集群,可以实现并行计算来提高处理速度。Raspberry Pi 集群可以执行一些计算...

    Raspberry.Pi.Home.Automation.with.Arduino.2nd.Edition.178439

    Revolutionize the way you interact with your home and become part of the rapidly growing group of hobbyists and enthusiasts by combining the powerful Raspberry Pi with an Arduino board. Starting with...

    Wiley Learning Python with Raspberry Pi 2014

    《Wiley Learning Python with Raspberry Pi 2014》是一本专为初学者设计的教程,旨在引导读者通过树莓派这一小型计算机平台学习Python编程。这本书由2014年出版,当时Python已是编程界的热门语言,而树莓派因其低...

    Raspberry Pi Cookbook.pdf

    The world of Raspberry Pi is evolving quickly, with many new interface boards and software libraries becoming available all the time. In this cookbook, prolific hacker and author Simon Monk provides ...

    Raspberry Pi LED Blueprints(PACKT,2015)

    By customizing and utilising LED-based modules into the Raspberry Pi board, exciting projects can be obtained. A countdown timer, a digital clock, a traffic light controller, and a remote light ...

    rpi-hubot-docker-template:Raspberry Pi上的Hubot Docker容器模板

    rpi-hubot-docker-template Raspberry Pi上的Hubot Docker容器模板如何在Raspberry Pi上使用Docker 上安装。 请参阅以设置环境。用法克隆此仓库 $ git clone https://github.com/knjcode/rpi-hubot-docker-template$...

    Raspberry.Pi.User.Guide.4th.Edition.1119264367

    Chapter 6: The Raspberry Pi Configuration Tool Chapter 7: Advanced Raspberry Pi Configuration Part II: Building a Media Centre or Productivity Machine Chapter 8: The Pi as a Home Theatre PC Chapter 9...

    Raspberry Pi快速入门指南-奥松

    《Raspberry Pi快速入门指南》是一本面向初学者的实用手册,由Maik Schmidt撰写,国内译者王峰、王江伟、王汝波共同翻译。该书为读者详细介绍了Raspberry Pi这一款迷你Linux计算机的使用方法,并指导用户如何通过...

    docker-raspberrypi-4B.zip

    docker-arm_20.10.6 资源

Global site tag (gtag.js) - Google Analytics