Docker Pull Private Warehouse (Ubuntu system)

Source: Internet
Author: User
Tags iptables docker registry

[Email protected]:~# Docker Pull 172.16.1.41:5000/ubuntu
Using default Tag:latest
Error response from Daemon:get Https://172.16.1.41:5000/v1/_ping:x509:certificate signed by unknown authority
Workaround:

Command line input: Dockerd--help

Usage:dockerd COMMAND

A self-sufficient runtime for containers.

Options:
--add-runtime Runtime Register An additional OCI compatible runtime (default [])
--api-cors-header string Set cors headers in the Engine API
--authorization-plugin list Authorization plugins to load (default [])
--bip string Specify Network Bridge IP
-B,--bridge string Attach containers to a network bridge
--cgroup-parent string Set parent cgroup for all containers
--cluster-advertise string Address or interface name to advertise
--cluster-store string URL of the distributed storage backend
--cluster-store-opt map Set Cluster store options (default map[])
--config-file string Daemon configuration file (default "/etc/docker/daemon.json")
--containerd string Path to Containerd socket
--cpu-rt-period int Limit The CPU real-time period in microseconds
--cpu-rt-runtime int Limit The CPU real-time runtime in microseconds
-D,--debug Enable debug mode
--default-gateway IP Container default gateway IPV4 address
--DEFAULT-GATEWAY-V6 IP Container default gateway IPV6 address
--default-runtime string Default OCI Runtime for containers (default "Runc")
--default-ulimit ulimit default ulimits for containers (default [])
--disable-legacy-registry Disable contacting Legacy registries
--dns list DNS server to use (default [])
--DNS-OPT list DNS options to use (default [])
--dns-search List DNS Search domains to use (default [])
--exec-opt list Runtime Execution options (default [])
--exec-root string root directory for execution state files (default "/var/run/docker")
--experimental Enable Experimental Features
--FIXED-CIDR string IPv4 subnet for fixed IPs
--FIXED-CIDR-V6 string IPv6 subnet for fixed IPs
-G,--graph string Root of the Docker runtime (default "/var/lib/docker")
-G,--group string group for the UNIX socket (default "Docker")
--help Print Usage
-H,--host list Daemon socket (s) to connect to (default [])
--ICC Enable Inter-container Communication (Default true)
--init Run an init in the container to forward signals and reap processes
--init-path string path to the Docker-init binary
--insecure-registry List Enable insecure registry communication (default [])
--IP IP Default IP when binding container ports (default 0.0.0.0)
--ip-forward Enable Net.ipv4.ip_forward (default True)
--IP-MASQ Enable IP masquerading (default true)
--iptables Enable Addition of iptables rules (default true)
--ipv6 Enable IPv6 Networking
--label List Set Key=value labels to the daemon (default [])
--live-restore Enable Live restore of Docker when containers is still running
--log-driver string Default driver for container logs (default "Json-file")
-L,--log-level string Set The logging level ("Debug", "Info", "Warn", "error", "Fatal") (Default ' in Fo ")
--log-opt map default log driver options for containers (default map[])
--max-concurrent-downloads int Set The max concurrent downloads for each pull (default 3)
--max-concurrent-uploads int Set The max concurrent uploads for each push (default 5)
--METRICS-ADDR string Set default address and port to serve the Metrics API on
--MTU int Set The Containers network MTU
--oom-score-adjust int Set The Oom_score_adj for the Daemon (default-500)
-P,--pidfile string Path to daemon PID file (default "/var/run/docker.pid")
--raw-logs full timestamps without ANSI coloring
--registry-mirror list Preferred Docker registry Mirror (default [])
--seccomp-profile string Path to Seccomp profile
--selinux-enabled Enable SELinux Support
--shutdown-timeout int Set The default shutdown timeout (default 15)
-S,--storage-driver string storage driver to use
--storage-opt List Storage driver options (default [])
--SWARM-DEFAULT-ADVERTISE-ADDR string Set default address or interface for swarm advertised address
--tls use TLS; Implied by--tlsverify
--tlscacert string Trust certs signed only by the This CA (default "/root/.docker/ca.pem")
--tlscert string Path to TLS certificate file (default "/root/.docker/cert.pem")
--tlskey string Path to TLS key file (default "/root/.docker/key.pem")
--tlsverify use TLS and verify the remote
--userland-proxy use Userland proxy for loopback traffic (default true)
--userland-proxy-path string path to the Userland proxy binary
--userns-remap string User/group setting for User namespaces
-V,--version Print version information and quit
There will be a-insecure-registryOptions

Vim/etc/default/docker Add:

Docker_opts= "--insecure-registry=172.16.1.41:5000"
: Wq

Systemctl Restart Docker

You can do it.

Docker Pull Private Warehouse (Ubuntu system)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.