Coder Social home page Coder Social logo

Comments (3)

tmlbl avatar tmlbl commented on May 22, 2024 1

It is tested with Docker but as of now only supports a very limit set of features. For example, authentication is not currently supported. The above will work fine if you include the port number, just like with the standard registry running locally

tim@doulos ~> docker pull nats
Using default tag: latest
latest: Pulling from library/nats
5e5797f39fa0: Pull complete
28c3b732adf6: Pull complete
Digest: sha256:9686d73262f91e44c10b838eecbab53e705d2f4be5718efe92dfdf9f86f4e786
Status: Downloaded newer image for nats:latest
docker.io/library/nats:latest

tim@doulos ~ > docker tag nats 127.0.0.1:7000/nats

tim@doulos ~> docker push 127.0.0.1:7000/nats
Using default tag: latest
The push refers to repository [127.0.0.1:7000/nats]
f22e8439b53a: Pushed
7e49c6f1bf90: Pushed
latest: digest: sha256:211e543a39d6378c483852a76b78a114bb26bdbe40a7aeda3daae61c62cbcf59 size: 715

from blobert.

jm-observer avatar jm-observer commented on May 22, 2024

hi, i try it in wsl, but fail. here is log:

start blobert in a terminal:

DESKTOP-BVUIHN1:git $ git clone https://github.com/tmlbl/blobert.git
……
DESKTOP-BVUIHN1:blobert (master) $ cargo run -- --log-level debug
……
    Finished dev [unoptimized + debuginfo] target(s) in 0.07s
     Running `target/debug/blobert --log-level debug`
[2022-07-07T01:40:16Z INFO  actix_server::builder] Starting 4 workers
[2022-07-07T01:40:16Z INFO  actix_server::server] Actix runtime found; starting in Actix runtime
[2022-07-07T01:40:16Z DEBUG blobert::blob] Creating data directory: /tmp/data
[2022-07-07T01:40:16Z DEBUG blobert::blob] Creating data directory: /tmp/data
[2022-07-07T01:40:16Z DEBUG blobert::blob] Creating data directory: /tmp/data
[2022-07-07T01:40:16Z DEBUG blobert::blob] Creating data directory: /tmp/data
[2022-07-07T01:44:03Z INFO  actix_web::middleware::logger] GET /v2 HTTP/1.1
[2022-07-07T01:44:08Z INFO  actix_web::middleware::logger] GET /v2/ HTTP/1.1

operate in other terminal:

DESKTOP-BVUIHN1:vas-quod $ docker tag nats 127.0.0.1:7000/nats
DESKTOP-BVUIHN1:vas-quod $ docker push 127.0.0.1:7000/nats
Using default tag: latest
The push refers to repository [127.0.0.1:7000/nats]
Get "http://127.0.0.1:7000/v2/": dial tcp 127.0.0.1:7000: connect: connection refused
DESKTOP-BVUIHN1:vas-quod $ wget http://127.0.0.1:7000/v2
--2022-07-07 09:44:03--  http://127.0.0.1:7000/v2
Connecting to 127.0.0.1:7000... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-07-07 09:44:03 ERROR 404: Not Found.

DESKTOP-BVUIHN1:vas-quod $ wget http://127.0.0.1:7000/v2/
--2022-07-07 09:44:08--  http://127.0.0.1:7000/v2/
Connecting to 127.0.0.1:7000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4
Saving to: ‘index.html’
index.html                                      100%[=====================================================================================================>]       4  --.-KB/s    in 0s
2022-07-07 09:44:08 (873 KB/s) - ‘index.html’ saved [4/4]

DESKTOP-BVUIHN1:vas-quod $ ls
Cargo.lock  Cargo.toml  LICENSE  README.md  assets  config.json  index.html  src  target
DESKTOP-BVUIHN1:vas-quod $ cat index.html
true%                                                                                                                                                                                         DESKTOP-BVUIHN1:vas-quod $ docker --version
Docker version 20.10.16, build aa7e414

from blobert.

jm-observer avatar jm-observer commented on May 22, 2024

i try configure the Docker daemon, but it also doesn't work.

"insecure-registries": ["127.0.0.1:7000"]

from blobert.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.