My Cloud Notes
Cloud Notes -
Docker-Compose
Download docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo docker-compose -v
Oracle Cloud
Base Ampere A1 - 4 OCPU & 24 GB RAMs - 180 GB (SSD)
On AAPanel
Install Docker-Compose
On Oracle Linux 8 on OCI
Download docker-ce
sudo yum update
sudo yum upgrade -y
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum update --skip-broken --nobest
sudo yum install docker-ce docker-ce-cli containerd.io -y
sudo docker -v
sudo groupadd docker
sudo usermod -aG docker <your_username>
sudo newgrp docker
sudo systemctl enable docker
sudo systemctl start docker
Disk resize on Oracle Cloud Instance
sudo su -
# Check Disk Size
df -hT | grep mapper
gdisk -l /dev/sda
growpart /dev/sda 3
pvresize /dev/sda3
pvs
vgs
lvextend -r -l +100%FREE /dev//mapper/ocivolume-root
#Verify with
df -hT | grep mapper
Digital Ocean - Cloud
Basic Instance - 2GB RAM and 2 vCPUs - Basic / 2GB /2 vCPUs
Basic - Shared CPU - vCPUs : 2 / Memory : 2GB / SSD : 60GBs / Transfer : 3 TB - USD 15/mo - $ 0.022/hr
On Cyberpanel 2.0.0 - Ubuntu 20.04
Disk resize on Digital Ocean
# Check UMask -> 0022
umask
# else
sudo su -
# Check Disk Size
df -Th /dev/vda1
gdisk -l /dev/vda
growpart /dev/vda 1
resize2fs /dev/vda1
#Verify with
df -Th /dev/vda1
- Other Topics
Comments