Install Docker in Raspberry Pi 4: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "<source lang="bash"> df -h vcgencmd measure_temp apt list --upgradable apt upgrade apt install openjdk-8-jdk/stable apt install openjdk-11-jdk/stable df -h curl -sSL https:/...")
 
No edit summary
Line 24: Line 24:
df -h
df -h
</source>
</source>
==Networking==
{|
| valign="top" |
<source lang="json">
cat <<EOF > /etc/docker/daemon.json
{
    "bip"  : "10.20.13.1/24",
    "mtu"  : 1500,
    "dns"  : [
        "10.19.83.5",
        "10.19.83.1"
    ],
    "debug": true
}
EOF
</source>
| valign="top" |
<source lang="json">
cat <<EOF > /etc/docker/daemon.json
{
    "mtu"  : 1500,
    "debug" : true,
    "experimental": false,
    "default-address-pools" :[{
        "base"  : "10.20.0.0/16",
        "size"  : 24
    }]
}
EOF
</source>
|}


== References ==
== References ==
* [https://medium.com/@sipkeschoorstra/installing-docker-on-raspberry-pi-4-b010d3792b2d Installing Docker on Raspberry Pi 4]
* [https://medium.com/@sipkeschoorstra/installing-docker-on-raspberry-pi-4-b010d3792b2d Installing Docker on Raspberry Pi 4]
* [https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl Installing Docker Compose on Raspberry Pi 4]
* [https://dev.to/rohansawant/installing-docker-and-docker-compose-on-the-raspberry-pi-in-5-simple-steps-3mgl Installing Docker Compose on Raspberry Pi 4]

Revision as of 02:21, 3 January 2021

df -h
vcgencmd measure_temp
apt list --upgradable
apt upgrade

apt install openjdk-8-jdk/stable
apt install openjdk-11-jdk/stable
df -h

curl -sSL https://get.docker.com | sh
usermod -aG docker pi
docker --version
df -h

docker run hello-world
docker ps -a
docker images

apt install libffi-dev libssl-dev
apt install python3 python3-pip
apt remove python-configparser
pip3 install docker-compose
df -h

Networking

cat <<EOF > /etc/docker/daemon.json
{
    "bip"  : "10.20.13.1/24",
    "mtu"  : 1500,
    "dns"  : [
        "10.19.83.5",
        "10.19.83.1"
    ],
    "debug": true
}
EOF
cat <<EOF > /etc/docker/daemon.json
{
    "mtu"   : 1500,
    "debug" : true,
    "experimental": false,
    "default-address-pools" :[{
        "base"  : "10.20.0.0/16",
        "size"  : 24
    }]
}
EOF

References