Skip to content

Commit

Permalink
add installation section
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Mar 22, 2018
1 parent 98533b1 commit b4f25b1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
2 changes: 1 addition & 1 deletion documentation/installation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ system in different types of devices and architectures.
:maxdepth: 1
:hidden:

ubuntu
ubuntu.rst
59 changes: 31 additions & 28 deletions documentation/installation/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,54 +9,57 @@ machine is at least equipped with Docker and Docker Compose. As `sudo`:

1. prepare the environment (https://docs.docker.com/install/linux/docker-ce/ubuntu/#set-up-the-repository)

```bash
# remove previous installations
apt-get remove -y docker docker-engine docker-ce docker.io
.. code-block:: bash
apt-get update
# remove previous installations
apt-get remove -y docker docker-engine docker-ce docker.io
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
apt-get update
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
apt-key fingerprint 0EBFCD88
```
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
1a. for x86_64 / amd64:
apt-key fingerprint 0EBFCD88
2. for x86_64 / amd64:

```bash
.. code-block:: bash
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
```
1a. for armhf:
for armhf:

```bash
.. code-block:: bash
add-apt-repository \
"deb [arch=armhf] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
```
2. install Docker
3. install Docker

.. code-block:: bash
apt-get update
apt-get install -y docker-ce
```bash
apt-get update
4. install Docker Compose (https://docs.docker.com/compose/install/#install-compose)

apt-get install -y docker-ce
```
.. code-block:: bash
3. install Docker Compose (https://docs.docker.com/compose/install/#install-compose)
curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
```bash
curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
```

0 comments on commit b4f25b1

Please sign in to comment.