For most developers, this is a great advantage for practicing cloud technology. From what the official website mentioned, you will get two free instances for your app and 100 GB total storage for your web content. That’s not a lot but enough for most of us to run a blog or website.
- Create Instance
First of all, all you need to do is created ssh key to remember the password in your Unix machine.
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]-----+
Once this has done you will see something like that above, and
ls to see there are two files
oracle_cloud . The one end with
.pub You will need to upload it.
Drop your ssh key when you created it.
Now your instance will be running and wait for the other 2 mins.
The next step ssh into the remote server with the key you created and by default the oracle recommended to login as
opc but not
ssh -i ~/.ssh/oracle_cloud firstname.lastname@example.org
If you do not use your custom name for login and password, you may choose to run a starter script.
You would log in with root and pass. and remember to change it with
Or you can use
sudo passwd root to change the password once you log in again.
In case, if you have some problems like ssh to the remote server, you need to configure the network or firewall.
One thing most people didn’t notice you also need to disable firewall internal
To install Docker, execute these commands:
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
In case the Docker Compose isn’t installed. Check out the official instruction below:
How To Install Docker Compose on Ubuntu 18.04 | DigitalOcean
Docker is a great tool for automating the deployment of Linux applications inside software containers, but to take full…
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
If your service still not working, you can run
reboot to check again.
Until now you should have a running docker and perfect setup instance.