Coder Social home page Coder Social logo

If use Docker to build the image as introductions,the name should obey dns rules,and so the name of image must be lowercase? about climax HOT 7 OPEN

Ericc1027 avatar Ericc1027 commented on July 18, 2024
If use Docker to build the image as introductions,the name should obey dns rules,and so the name of image must be lowercase?

from climax.

Comments (7)

rejuvyesh avatar rejuvyesh commented on July 18, 2024

Sorry, I'm not sure what you mean. Can you share the exact command and error?

from climax.

Ericc1027 avatar Ericc1027 commented on July 18, 2024

Thanks .PLZ find the errors as follow:
base) mac@macdeMacBook-Pro ClimaX % cd cd docker (base) mac@macdeMacBook-Pro ClimaX % docker build -t ClimaX .
[+] Building 0.0s (0/0) docker:desktop-linux

ERROR: invalid tag "ClimaX": repository name must be lowercase

from climax.

rejuvyesh avatar rejuvyesh commented on July 18, 2024

Ah, okay. Feel free to adjust to all lowercase. I haven't checked these on mac docker. The tag name you use in the docker creation doesn't matter as long as you are consistent!

from climax.

Ericc1027 avatar Ericc1027 commented on July 18, 2024

 Thanks for your kindness.However,something still went wrong way even I have changed the mirror name to all lowercase:
failed
567.8
567.8 CondaEnvException: Pip failed
567.8

Dockerfile:39

37 | ENV PATH=/opt/conda/bin:${PATH}
38 | ENV conda update -n base conda
39 | >>> RUN conda env create -f /tmp/environment.yml
40 |
41 | SHELL ["conda", "run", "-n", "climaX", "/bin/bash", "-c"]

ERROR: failed to solve: process "/bin/sh -c conda env create -f /tmp/environment.yml" did not complete successfully: exit code: 1

SO should I amend the Dockerfile or envirment.yaml files?

from climax.

rejuvyesh avatar rejuvyesh commented on July 18, 2024

This doesn't tell what the exact error is. Likely some package has issues installing? Python packaging is a mess.

from climax.

Ericc1027 avatar Ericc1027 commented on July 18, 2024

Thanks a lot。Now I have built an image,and then changed the repository name with all lowercase. When I tried to run the container,the process failed due to mounts denied:
(base) mac@macdeMacBook-Pro ClimaX % docker run --gpus all -it --rm --user $(id -u):$(id -g)
-v $(pwd):/code -v /mnt/data:/data --workdir /code -e PYTHONPATH=/code/src
ClimaX:latest
docker: invalid reference format: repository name (library/ClimaX) must be lowercase.
See 'docker run --help'.
(base) mac@macdeMacBook-Pro ClimaX % docker run --gpus all -it --rm --user $(id -u):$(id -g)
-v $(pwd):/code -v /mnt/data:/data --workdir /code -e PYTHONPATH=/code/src
climax:latest
docker: Error response from daemon: Mounts denied:
The path /mnt/data is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
ERRO[0000] error waiting for container: context canceled
(base) mac@macdeMacBook-Pro ClimaX % docker run --gpus all -it --rm --user $(id -u):$(id -g)
-v $(pwd):/code -v /mnt/data:/data --workdir /code -e PYTHONPATH=/code/src
ClimaX:latest
docker: invalid reference format: repository name (library/ClimaX) must be lowercase.
See 'docker run --help'.
(base) mac@macdeMacBook-Pro ClimaX % docker run --gpus all -it --rm --user $(id -u):$(id -g)
-v $(pwd):/code -v /mnt/data:/data --workdir /code -e PYTHONPATH=/code/src
climax:latest
docker: Error response from daemon: Mounts denied:
The path /mnt/data is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
ERRO[0000] error waiting for container: context canceled

from climax.

rejuvyesh avatar rejuvyesh commented on July 18, 2024

Oh /mnt/data is just a random path. You should change it to the path you have your local data stored.

from climax.

Related Issues (20)

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.