| Server IP : 93.86.61.54 / Your IP : 216.73.216.206 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/docker/__pycache__/ |
Upload File : |
o
�2.a�3 � @ s� d dl Z d dlZd dlZddlmZ ddlmZ ddlmZ dZde� d�Z d Z
e�e�Z
d
d� Zdd
� Zdd� Zdd� Zdd� ZG dd� de�Zd%dd�Zdd� Zdd� Zdd� Zd&dd �Zd'd!d"�Zd#d$� ZdS )(� N� )�credentials)�errors)�configz docker.iozhttps://index.z/v1/z<token>c C sZ d| v r
t �d| � d���t| �\}}|d dks|d dkr't �d�|���t|�|fS )Nz://z)Repository name cannot contain a scheme (�)r �-���z;Invalid index name ({}). Cannot begin or end with a hyphen.)r �InvalidRepository�split_repo_name�format�resolve_index_name)� repo_name�
index_name�remote_name� r �-/usr/lib/python3/dist-packages/docker/auth.py�resolve_repository_name s
��r c C s t | �} | dt krt} | S )Nzindex.)�convert_to_hostname�
INDEX_NAME)r r r r r s r c C sf t �d� | jr| jjrt �d� t| jd�| _t| j|| jd�}|r,t �d� t|�S t �d� d S )NzLooking for auth configz2No auth config in memory - loading from filesystem)�
credstore_envzFound auth configzNo auth config found)�log�debug�
_auth_configs�is_empty�load_configr �resolve_authconfig�
encode_header)�client�registry�authcfgr r r �get_config_header&