Docker installs and deploys Apache Storm on Ubuntu16.04

Source: Internet
Author: User
Tags docker ps docker compose docker run

Docker installs on the Ubuntu16.04 and Deployment Apache Storm

1. Add a Docker source

sudo apt-get update

2. increase The CA certificate

sudo apt-get install Apt-transport-https ca-certificates

3. Add GPG Key ( an encryption method )

sudo apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 58118e89f3a912897c070adbf76221572c52609d

4. Create a docker.list file

sudo vi/etc/apt/sources.list.d/docker.list

# Add ubuntu16.04lst 's entry

Deb Https://apt.dockerproject.org/repo ubuntu-xenial Main

5. update the source again

sudo apt-get update

6. Just in case , remove outdated sources

sudo apt-get purge Docker

7. verify that APT is downloading the application from the correct library source ( so far, the source of Docker has been configured )

Apt-cache Policy Docker-engine

8, install aufs drive linux-image-extra, update the source

sudo apt-get update

9, installation Linux-image-extra

sudo apt-get install linux-image-extra-$ (uname-r)

10. Install Docker, update source

sudo apt-get update

11. Install Docker online via apt command

sudo apt-get install Docker-engine

12. Open Docker Daemon (Docker service on)

sudo service docker start


13, international practice, with a Hello world to test the installation success. Locally there was no Hello World image, acquired through the Docker Source, and succeeded in the reality Hello.

sudo Docker run Hello-world

14. viewing a running container

sudo docker ps-ls

( So far , the Docker Engine has been configured )

15. Start installing Docker Compose

16. Install The Curl command

sudo apt Install curl

17. Installing Docker Compose

sudo curl-l https://github.com/docker/compose/releases/download/1.17.0/docker-compose-' uname-s '-' uname-m '-o/usr/ Local/bin/docker-compose

sudo chmod +x/usr/local/bin/docker-compose

18. Verifying Docker Compose

sudo docker-compose--version

( So far , the Docker Compose has been configured )


19. start deploying Apache Storm

20. cloning a git project

sudo git clone https://github.com/ziyunhx/storm-mono-docker

21. Switch the command line directory to the git project directory that you just cloned, and start the cluster with the following command:

sudo docker-compose up-d

Attention:

(1) You can also use the docker-compose up command to output the results to the current command line interface, but you will not be able to do anything else until you end it, and once the command line exits, all containers are stopped. and docker-compose up-d will start all containers in the background.

(2) the first boot time is quite long .

22. Access the Storm UI(port:49080)

( At this point , the Storm has been successfully deployed through Docker )

23 . Stop all containers for this cluster:

sudo Docker-compose Stop

24. Stop the Docker daemon

sudo service Docker Stop

Docker installs and deploys Apache Storm on Ubuntu16.04

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.