# Docker deployment of Spark Cluster

### Docker deployment of Spark Cluster

Docker Install, for our purpose, we only need to install Docker Community Edition (CE)

Get Docker CE for CentOS:

{% embed url="<https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/centos/>" %}

Get Docker CE for Debian:

{% embed url="<https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/debian/>" %}

Get Docker CE for Ubuntu:

{% embed url="<https://docs.docker.com/v17.09/engine/installation/linux/docker-ce/ubuntu/#set-up-the-repository>" %}

Docker for Windows 10:

{% embed url="<https://docs.docker.com/v17.09/docker-for-windows/install/#download-docker-for-windows>" %}

Docker for Mac:

{% embed url="<https://docs.docker.com/v17.09/docker-for-mac/install/>" %}

For others:

{% embed url="<https://docs.docker.com/v17.09/engine/installation/#server>" %}

Non Windows:

After Docker is installed, need to do the following to allow non root user to run Docker container

sudo groupadd docker

sudo usermod -aG docker $USER

exit and log in again

Install docker-compose:

{% embed url="<https://docs.docker.com/compose/install/>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://george-jen.gitbook.io/data-science-and-apache-spark/docker-deployment-of-spark-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
