quick-keyboard-83126
06/29/2022, 8:36 PMquick-keyboard-83126
06/29/2022, 8:49 PMdocker buildx build
to chain build dependencies, but apparently in order to do that, i need to use --push
, but I don't really want to publish to a remote registry, so I tried using:
docker run -d -p 5001:5000 --restart=always --name registry registry:2
(port 5000 is in use by Server: AirTunes/615.12.1
)
But (once I pick my non localhost ip address...), this fails miserably with:
error: failed to solve: failed to do request: Head "https://<my-non-localhost-ip>:5001/v2/foo/blobs/sha256:<random-sha>": http: server gave HTTP response to HTTPS client
I understand that registry
speaks http
out of the box and docker
wants to speak https
. I get that there's a file I could change (but, I suspect that I'd have to change it in my. lima vm
, and that doing this would be arguably very dangerous).
Anyone have suggestions?quick-keyboard-83126
06/29/2022, 9:23 PMnutritious-application-85076
06/30/2022, 9:45 AMkind load docker-image ...
or the only way to achieve that is to add an image using the UI ?nutritious-application-85076
06/30/2022, 10:13 AMnerdctl
. Where can I post my question ?clever-winter-66704
07/03/2022, 3:32 AMnutritious-application-85076
07/05/2022, 12:00 PMhttp 404
? I can access the service using kubectl port-foward
and address <http://localhost:7007/catalog>
rapid-traffic-3855
07/05/2022, 3:30 PMrough-house-44159
07/05/2022, 6:56 PMwsl -l
1. Debian
2. Rancher-desktop
3. Rancher-desktop-data
How can I connect docker from debian? I couldn't locate any doc.
Also how can I transfer kube config to talk to k3s clusters?
Have tried different k3s image versions. Right now, I am on stable one and wsl integration only works in achieving integration with the host system. Please advice. Thank youvictorious-architect-31541
07/06/2022, 8:39 AMfaint-pizza-17848
07/06/2022, 10:30 AMcolossal-minister-18571
07/06/2022, 10:02 PMminiature-belgium-38783
07/07/2022, 2:40 PMversion: '3'
volumes:
portainer-data:
external: true
services:
portainer:
image: portainer/portainer-ce:2.9.3
container_name: portainer
restart: unless-stopped
security_opt:
- no-new-privileges:true
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- portainer-data:/data
ports:
- 9443:9443
My guess is that its related to docker.sock , the docker doesn't receive the permission to it
please Advisesticky-art-85060
07/11/2022, 10:16 AMadventurous-insurance-41443
07/11/2022, 5:18 PMcompose.yaml
file that looks like
version: "3.8"
services:
app:
build:
context: .
dockerfile: local.Dockerfile
ports:
- "80:8000"
environment:
ENVIRONMENT_NAME: "LOCAL"
BUNCH_O_ENVIRONMENT_VARS: "HERE"
restart: always
volumes:
- .:/root/work
and it builds the container successfully and then when it starts the container i get
app_1 |time="2022-07-11T17:03:16Z" level=fatal msg="failed to open \"/var/lib/nerdctl/dbb19c5e/containers/default/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb-json.log\", container is not created with `nerdctl run -d`?: stat /var/lib/nerdctl/dbb19c5e/containers/default/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb/e8ec1111f96eda2b4ea51192a641fdb9ceaaa2b4550afe95eb17de8c8cacb2bb-json.log: no such file or directory"
and indeed /var/lib/nerdctl
is missing from my computer. I am running macOS, and it appears to me that /var/lib
is read-only.agreeable-refrigerator-81827
07/11/2022, 5:20 PMclever-guitar-78476
07/12/2022, 3:43 AMrhythmic-umbrella-94086
07/13/2022, 4:54 PMthousands-mechanic-72394
07/13/2022, 7:30 PMelegant-memory-40145
07/13/2022, 9:32 PMelegant-rose-89654
07/14/2022, 7:21 AMCluster agent is not connected
. Can someone tell me how to debug this? Thank youripe-grass-75099
07/14/2022, 1:28 PMFROM <http://mcr.microsoft.com/dotnet/sdk:6.0-alpine|mcr.microsoft.com/dotnet/sdk:6.0-alpine>
#RUN ping <http://google.com|google.com>
RUN ping <http://api.nuget.org|api.nuget.org>
and the output
C:\temp\docker>docker build .
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM <http://mcr.microsoft.com/dotnet/sdk:6.0-alpine|mcr.microsoft.com/dotnet/sdk:6.0-alpine>
---> 68f959202edb
Step 2/4 : RUN ping <http://api.nuget.org|api.nuget.org>
---> Running in 190474634dc2
ping: bad address '<http://api.nuget.org|api.nuget.org>'
The command '/bin/sh -c ping <http://api.nuget.org|api.nuget.org>' returned a non-zero code: 1
A curl in the docker build returns this:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Could not resolve host: <http://api.nuget.org|api.nuget.org>
* Closing connection 0
curl: (6) Could not resolve host: <http://api.nuget.org|api.nuget.org>
Really not sure what is going on as other addresses appear to work fine so it shouldn't be a networking issue, but everything suggests it iswitty-honey-18052
07/14/2022, 2:58 PMelegant-memory-40145
07/14/2022, 4:55 PMripe-grass-75099
07/15/2022, 1:25 PMSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
ripe-grass-75099
07/15/2022, 2:41 PMmany-plastic-16454
07/15/2022, 10:40 PMdocker run -it --rm --add-host=host.docker.internal:host-gateway debian:latest bash
and on the host side, I'm running python3 -m http.server 9876
. So on the container, I installed telnet and telnet host.docker.internal 9876
but unable to connect. What am I missing?adventurous-insurance-41443
07/18/2022, 2:14 PMcrooked-rocket-3338
07/18/2022, 3:32 PMcontainerd
/ nerdctl
successfully, now I switched to `moby`/`docker` and my mount (bind) are failing. (win11 / WSL2 / rancher desktop 1.4.1). I read a lot a related issues about that but cannot find a workaround does anyone have a lead for me ?
To reproduce :
docker run --mount type=bind,source=/etc/passwd,target=/etc/passwd --rm ubuntu:20.04
Returns:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/wsl/rancher-desktop/run/docker-mounts/6b17adac-3323-46ab-933a-202faa10537a" to rootfs at "/etc/passwd": mount /mnt/wsl/rancher-desktop/run/docker-mounts/6b17adac-3323-46ab-933a-202faa10537a:/etc/passwd (via /proc/self/fd/6), flags: 0x5001: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
adventurous-insurance-41443
07/18/2022, 4:48 PMnerdctl compose up --build
. The webserver in the container is running without error. But when I try to hit it with a HTTP message, I get error Error: connect ECONNREFUSED 127.0.0.1:8556
. (details in thread)