ESXi, CentOS, Ubuntu, Docker
Useful Commands
hostnamectl set-hostname "aws-webmin.rhomicom.com"
nano /etc/hosts
fuser -k 25/tcp
fuser -k 80/tcp
fuser -k 443/tcp
lsblk -o name,rota
fdisk -l
adduser rhouser passwd rhouser usermod -aG wheel rhouser su - rhouser
chkconfig --add httpd chkconfig httpd on
chkconfig httpd off chkconfig --del httpd
yum -y install which openssh openssh-server openssh-clients openssl-libs nano rsync unzip net-tools NetworkManager-tui sysstat perl-core libaio nmap-ncat libstdc++.so.6 wget tar
yum install epel-release dnf --enablerepo=epel -y install sshpass
#Download rsync -avH [email protected]:/home/user/ --progress --human-readable /home/user/Downloads/ #UPLOAD# rsync -avH /home/richard/Downloads/ --progress --human-readable [email protected]:/home/user/ rsync -avHP /home/a_bkps.tar.gz --progress --human-readable -e "ssh -i some-key.pem" [email protected]:/home/user/
Docker Commands
docker ps
docker inspect -f "{{ .Config.Env }}" <container_id>
docker commit --change "ENV DEBUG=true" <container_id> rhomicom/testimage:v1.0
docker inspect -f "{{ .Config.Env }}" <container_id>
docker push rhomicom/testimage:v1.0
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
sudo systemctl start docker && sudo systemctl enable docker
sudo docker run hello-world
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/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
docker-compose --version