Difference between revisions of "ESXi, CentOS, Ubuntu, Docker"

From Rhomicom Wiki
Jump to navigation Jump to search
Line 10: Line 10:
 
   yum install epel-release
 
   yum install epel-release
 
   dnf --enablerepo=epel -y install sshpass
 
   dnf --enablerepo=epel -y install sshpass
 +
docker ps
 +
 +
docker inspect -f  c3f279d17e0a
 +
 +
[HOME=/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]
 +
 +
$ docker commit --change "ENV DEBUG=true" c3f279d17e0a svendowideit/testimage:version3
 +
 +
f5283438590d
 +
 +
$ docker inspect -f "{{.Config.Env }}" f5283438590d

Revision as of 12:50, 20 May 2021

Useful Commands

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 openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 wget tar 
 yum install epel-release
 dnf --enablerepo=epel -y install sshpass

docker ps

docker inspect -f c3f279d17e0a

[HOME=/ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]

$ docker commit --change "ENV DEBUG=true" c3f279d17e0a svendowideit/testimage:version3

f5283438590d

$ docker inspect -f "Template:.Config.Env" f5283438590d