0% found this document useful (0 votes)
33 views

Configuracion Docker

The document shows the output of various commands run on a Linux system to troubleshoot issues connecting to external URLs and pulling Docker images. It reveals that ping commands to google.com were failing, but setting HTTP/HTTPS proxy environment variables allowed successful pulling of Docker images after editing the Docker daemon configuration file and systemd service file to use the corporate proxy.

Uploaded by

Elmer Soto
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

Configuracion Docker

The document shows the output of various commands run on a Linux system to troubleshoot issues connecting to external URLs and pulling Docker images. It reveals that ping commands to google.com were failing, but setting HTTP/HTTPS proxy environment variables allowed successful pulling of Docker images after editing the Docker daemon configuration file and systemd service file to use the corporate proxy.

Uploaded by

Elmer Soto
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

[root@localhost etc]# ping google.

com
ping: google.com: Nombre o servicio desconocido
[root@localhost etc]# docker ps
CONTAINER ID IMAGE COMMAND
21f05ecf315e jupyter/datascience-notebook:6b49f3337709 "tini -g
-- start-no…" _shaw
77537b00728d container-registry.oracle.com/database/express:21.3.0-xe "/bin/sh
-c 'exec $O…" e21c
727ce55c8e8a airflow_airflow-triggerer
"/usr/bin/dumb-init …" ow-airflow-triggerer-1
ecdf3ab70e34 airflow_airflow-scheduler
"/usr/bin/dumb-init …" ow-airflow-scheduler-1
d268149c88fd airflow_flower
"/usr/bin/dumb-init …" ow-flower-1
b332a31632db airflow_airflow-webserver
"/usr/bin/dumb-init …" ow-airflow-webserver-1
1604d232a7bc airflow_airflow-worker
"/usr/bin/dumb-init …" ow-airflow-worker-1
846f8f589683 postgres:13 "docker-
entrypoint.s…" ow-postgres-1
5a9dfc0aa300 redis:latest "docker-
entrypoint.s…" ow-redis-1
[root@localhost etc]# ping google.com
ping: google.com: Nombre o servicio desconocido
[root@localhost etc]# export
https_proxy="http://chuamancaja1:[email protected]:8080"
[root@localhost etc]# export
http_proxy="http://chuamancaja1:[email protected]:8080"
[root@localhost etc]# ping google.com
ping: google.com: Nombre o servicio desconocido
[root@localhost etc]# ping google.com
ping: google.com: Nombre o servicio desconocido
[root@localhost etc]# clear
[root@localhost etc]# ping google.com
ping: google.com: Nombre o servicio desconocido
[root@localhost etc]# docker run --name artifactory -v
$JFROG_HOME/artifactory/var/:/var/opt/jfro
Unable to find image 'releases-docker.jfrog.io/jfrog/artifactory-oss:latest'
locally
docker: Error response from daemon: Get "https://releases-docker.jfrog.io/v2/":
net/http: request
See 'docker run --help'.
[root@localhost etc]# cat /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"log-driver": "json-file",
"log-opts": {
"max-size": "100m"
},
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
],
"insecure-registries": ["http://192.168.1.10:8082","http://192.168.1.10:8083"],
"dns": ["192.168.1.1","8.8.8.8"]
}

[root@localhost etc]# cat /root/.docker/


.buildNodeID config.json .token_seed .token_seed.lock
[root@localhost etc]# cat /root/.docker/config.json
{
"auths": {}
}[root@localhost etc]# cat /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://192.168.1.3:8080"
Environment="HTTPS_PROXY=http://192.168.1.3:8080"

[root@localhost etc]#

You might also like