Logo

dev-resources.site

for different kinds of informations.

Dockerize an OCI Instance

Published at
11/10/2023
Categories
oci
docker
oraclecloud
selfhost
Author
paihari
Categories
4 categories in total
oci
open
docker
open
oraclecloud
open
selfhost
open
Author
7 person written this
paihari
open
Dockerize an OCI Instance

"Docker undeniably stands as one of the most versatile tools in any engineer's toolkit. Its utility is akin to that of a Swiss army knife, and its constant evolution through community contributions only bolsters its strength.

Deploying software with Docker on your local machine has become a breeze lately, thanks to its seamless packaging. Familiarity with your local environment makes this a convenient choice. However, when the time comes to self-host an application on a cloud provider, the landscape becomes vastly different, and a multitude of challenges emerges.

In this blog post, we will delve into the installation of Docker on an Oracle Cloud Infrastructure (OCI) instance, laying the crucial foundation for our upcoming ventures. This article is part of an ongoing series, so stay tuned for more insights and practical tips.


Objective: Provision Docker Instance in OCI, with external Block volumes to cater to Docker Services


  1. Provision an OCI Instance. Refer OCI Instance with External Volume

  2. SSH to the Created Instance to install Docker and Docker Compose

sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf list docker-ce
sudo dnf install docker-ce --nobest
sudo docker -v
sudo systemctl enable --now docker
sudo systemctl status docker
sudo usermod -aG docker root
sudo systemctl disable firewalld
sudo sudo curl -L "https://github.com/docker/compose/releases/download/v2.12.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo sudo mv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
sudo docker-compose -v

Enter fullscreen mode Exit fullscreen mode
selfhost Article's
28 articles in total
Favicon
Portainer + gitops ❀️: A simple way to deploy and manage your self-hosted applications
Favicon
Information flow - how I capture the notes
Favicon
I Am Done With Self-Hosting
Favicon
Hoppscotch Cloud vs. Self-Hosted Community vs. Self-Hosted Enterprise – Which One Should You Choose?
Favicon
Hoppscotch v2024.3.0: Access Control, Variable Scopes and more..
Favicon
Exploring Open Source # 1: Calibre E-book Library
Favicon
A Year of Self-Hosting: 6 Open-Source Projects That Surprised Me in 2023
Favicon
Dockerize an OCI Instance
Favicon
OCI Instance with External Block Volume
Favicon
Open-source Fine-Tuning on Codebase with Refact
Favicon
Deploying Medusa to Oracle Cloud
Favicon
CapRover - Easy and Free Self-Hosted PaaS!
Favicon
2023 On Prem Kubernetes Container Attached Storage Options
Favicon
BEST Postman Alternative: Hoppscotch πŸ›Έ - open source, self hosted API Development Ecosystem
Favicon
Self-hosted Matomo - an implementation guide for production
Favicon
PresenceJS: The Simplest Way to Power Realtime Experience in My Collaborative Apps , From Current to The Future
Favicon
A minimal ChatGPT client by vanilla javascript, run from local or any web host
Favicon
Need help with the following error…!
Favicon
What's on my Raspberry-Pi
Favicon
Connect to Kubernetes Pods with Tailscale
Favicon
self-host forem on cloud other than gcp,aws,digitalocean
Favicon
Self-hosted newsletter tech stack for $0-7/mo
Favicon
Self-hosting Quirrel
Favicon
Please help how to host two forem domain in a single server
Favicon
O que Γ© selfhosting e por que adotΓ‘-lo
Favicon
Leaving Feedly for Miniflux
Favicon
Connect Your Home to the Cloud with Tailscale
Favicon
Pixelfed (beta) with Docker and Traefik

Featured ones: