Docker Setup with Oracle Cloud Provides Always Free Cloud Instance

oracle cloud
cd ~/.ssh/ssh-keygen -t rsa -N "<your-password>" -b 2048 -C "<key_name>" -f
Generating public/private rsa key pair.Enter file in which to save the key (/Users/jay/.ssh/id_rsa): oracle_cloudYour identification has been saved in oracle_cloud.Your public key has been saved in oracle_cloud.pub.The key fingerprint is:SHA256:cxCCu7OKwFSStwssdHHUhbGhgctyfyDE1Jp/cIrc oracle_cloudThe key's randomart image is:+---[RSA 2048]----+|=o.O=.- ..oooooo ||===ooO . -oo.o   ||==. * = -.*.o    ||.. . * o -* .   ||    o o S = .    ||     E   o .     ||                 ||                 ||                 |+----[SHA256]-----+
ssh -i ~/.ssh/oracle_cloud opc@xxx.xxx.xxx.xxx
sudo yum-config-manager --enable ol7_addons 
sudo yum install docker-engine -y
sudo systemctl start docker
sudo yum install docker-compose -y
sudo systemctl enable docker
sudo curl -L "https://github.com/docker/compose/releases/download/1.28.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-composesudo chmod +x /usr/local/bin/docker-compose$ docker-compose --version
docker-compose version 1.28.4, build 1110ad01

Full Stack Developer — Typescript | Javascript | NodeJS | Python |MongoDB | ReactJS | VueJS | EmberJS — Blog writer & Professional writer❤️ @ shijiezhou.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store