403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/CyberCP/dockerManager/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/CyberCP/dockerManager/__pycache__/dockerInstall.cpython-310.pyc
o

��0h��@stddlZddlZddlZej�d�ddlmZddlm	Z	ddl
mZGdd�d�Zdd�Z
ed	kr8e
�dSdS)
�Nz/usr/local/CyberCP)�ServerStatusUtil)�ProcessUtilitiesc@seZdZeddd��ZdS)�
DockerInstallrc
Cs.z�ttjd�}tj�tjdd�t�d�dkrftj�tjdd�t�d|�t�d|�t	�
�t	jt	jfvr=t�d	|�nt�d
|�t�d|�tj
�d�r]t�d�tj�tjd
d�tj�tjdd�dtjvrzt�d|�tj�tjdd�tj
�d�r�t�d�tj�tjdd�t	�
�t	jkr�tj
�t	j�r�tj�d�gd�}nt	�
�t	jkr�dg}ndg}|D]}|r�t	�|dd�q�t�||�s�tj�tjdd�WdSq�t	�ddd�t	�ddd�tj�tjdd�t�d�WdSt�y}ztj�tjt|�dd�WYd}~dSd}~ww) N�wzStarting Docker Installation..
�zwhich podman > /dev/null 2>&1rz=Podman detected. Removing Podman before installing Docker...
zpodman stop -azpodman rm -azdnf remove -y podmanz7DEBIAN_FRONTEND=noninteractive apt-get remove -y podmanzrm -rf /var/lib/containersz/run/podman/podman.sockzRemoved Podman socket.
zPodman completely removed.
�DOCKER_HOSTzunset DOCKER_HOSTz&Unset DOCKER_HOST to avoid conflicts.
z2/etc/systemd/system/docker.service.d/override.confz)Removed systemd override forcing Podman.
z'Docker installation started for cent8/9)zsudo yum install -y yum-utilszyum install yum-utils -yzUyum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repoz^sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin --allowerasing -yzsudo yum install -y dockerzJDEBIAN_FRONTEND=noninteractive apt-get install -y docker.io docker-compose�rootTz Failed to install Docker. [404]
zsudo systemctl enable dockerzsudo systemctl start dockerz%Docker successfully installed. [200]
�z [404].)�openr�lswsInstallStatusPath�logging�CyberCPLogFileWriter�statusWriter�os�system�executionerr�decideDistro�cent8�centos�path�exists�remove�environ�	debugPath�writeToFile�time�sleep�
BaseException�str)�	CommandCP�
statusFile�commands�command�msg�r$�1/usr/local/CyberCP/dockerManager/dockerInstall.py�submitInstallDockersv
�
�

�
�

�

�

��
�(��z!DockerInstall.submitInstallDockerN)r)�__name__�
__module__�__qualname__�staticmethodr&r$r$r$r%rsrcCst��dS)N)rr&r$r$r$r%�main`sr+�__main__)r�sysrr�append�plogical.CyberCPLogFileWriterr
r�serverStatus.serverStatusUtilr�plogical.processUtilitiesrrr+r'r$r$r$r%�<module>sU
�

Youez - 2016 - github.com/yon3zu
LinuXploit