DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • What Is mTLS? How To Implement It With Istio
  • 8 Data Anonymization Techniques to Safeguard User PII Data
  • How to Optimize CPU Performance Through Isolation and System Tuning
  • How To Integrate Microsoft Team With Cypress Cloud
  1. DZone
  2. Software Design and Architecture
  3. Microservices
  4. Docker.io and Redis on DigitalOcean in Five Minutes

Docker.io and Redis on DigitalOcean in Five Minutes

Diarmuid Moloney user avatar by
Diarmuid Moloney
·
Sep. 03, 13 · Interview
Like (0)
Save
Tweet
Share
6.04K Views

Join the DZone community and get the full member experience.

Join For Free

it all started when i casually spotted a sponsored tweet offering me $10 worth of virtual computing power from digitalocean . i had seen their ads on everything from facebook to gmail and thought i’d check out what the fuss was about.

i had been planning to try docker.io on something other than my macbook for a while and was tempted to run up another linode server. instead, i decided to see if i could get docker running on digitalocean.

docker turned 0.6 over the weekend and is heading full speed toward a production-grade container platform. if you are reading this post you are probably already interested in docker, but for the uninitiated, docker allows you to ship applications as containers running in what appears to be self-contained linux environments. it's is based on linux container magic and runs within the same operating system as its host.

so here is my guide to get docker 0.6.1 running on the digitalocean vm. five minutes starts now!

first, create a new droplet based upon the ubuntu 13.04 x64 image

image create the droplet and within a minute or so you should be able to interact with your new machine. your root password is emailed to the registered email address

once it is created, ssh directly on to the box as root. for me it was as simple as:

 ssh root@192.241.174.17

now, following docker’s install guide, i ran:

apt-get update
apt-get install linux-image-extra-`uname -r`

sh -c "curl http://get.docker.io/gpg | apt-key add -"

sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"

apt-get update
apt-get install lxc-docker

which allowed me to run docker for the first time.

root@blog:~# docker version
client version: 0.6.1
server version: 0.6.1
git commit: 5105263
go version: go1.1.2
last stable version: 0.6.1

now, to run something exciting, let's run redis.

docker run -d johncosta/redis 

install redis-cli on the host machine.

apt-get install redis-server

redis-cli -h 192.241.174.17 -p 6379

or connect from your macbook.

brew install redis

redis-cli -h 192.241.174.17 -p 6379

now, it's time to play with redis.

redis localhost:6379> set docker magic
ok
redis localhost:6379> get docker
"magic" 

five minutes must be up by now!



Redis (company) Docker (software)

Opinions expressed by DZone contributors are their own.

Trending

  • What Is mTLS? How To Implement It With Istio
  • 8 Data Anonymization Techniques to Safeguard User PII Data
  • How to Optimize CPU Performance Through Isolation and System Tuning
  • How To Integrate Microsoft Team With Cypress Cloud

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: