What is the difference between "Build" and "Pull and Build" ?
Services | Compose | Dockerfile
-
- OMV 6.x
- gderf
-
-
What is the difference between "Build" and "Pull and Build" ?
Build is to rebuild it from a dockerfile.
Pull from some repository.
-
What is the difference between "Build" and "Pull and Build" ?
Good question, that feature must be recent, I missed it in the wiki doc.
Theoretically Build should download the image from the Dockerfile and run the subsequent commands to create the container. Pull and build should apparently do the same, so I don't know how to answer that except that ryecoaaron has modified the behavior of Build and now doesn't download the initial image, but just creates the container if the image already exists.
I'll be watching ryecoaaron 's answer to add that to the wiki.
-
-
Good question, that feature must be recent, I missed it in the wiki doc.
Theoretically Build should download the image from the Dockerfile and run the subsequent commands to create the container. Pull and build should apparently do the same, so I don't know how to answer that except that ryecoaaron has modified the behavior of Build and now doesn't download the initial image, but just creates the container if the image already exists.
I'll be watching ryecoaaron 's answer to add that to the wiki.
"Theoretically Build should download the image from the Dockerfile and run the subsequent commands to create the container."
This isn't the case because I use this. It doesn't have anything to do with containers, it builds an image from instructions in a Dockerfile.
-
Build is to rebuild it from a dockerfile.
Pull from some repository.
That doesn't explain "Pull and Build."
-
This isn't the case because I use this. It doesn't have anything to do with containers, it builds an image from instructions in a Dockerfile.
Yeah. But all Dockerfiles start by downloading a first image. Ubuntu or whatever. Then you run the commands to modify it. I mean that first image.
-
-
That doesn't explain "Pull and Build."
add the two together ?
I thought it just said pull and build not the two together.
-
Build will only pull the image if the image doesn't exist on the system
Pull and Build will always pull the latest image.
-
Possibly what the Build command is doing is starting the Dockerfile from the image that is already available on the host. But ryecoaaron will have to confirm this.
-
-
Build will only pull the image if the image doesn't exist on the system
Pull and Build will always pull the latest image.
Ok, that's what I thought and try to explain. I'll add it to the wiki, thanks.
-
Added.
omv6:omv6_plugins:docker_compose [omv-extras.org]
omv6:omv6_plugins:docker_compose [omv-extras.org]
ZitatBuild
Allows you to deploy Dockerfile with the defined configuration. The first image will be pulled from the internet if it is not available on the host. A modified image will be created from the instructions defined in the Dockerfile and the container will be created from the image.
Triggered by selecting a Dockerfile.
Pull and build
It will do the same as the Build button but the initial image will always be downloaded from the internet in its most updated version even if it exists on the host.
Triggered by selecting a Dockerfile.
-
chente
Hat das Label gelöst hinzugefügt. -
add the two together ?
I thought it just said pull and build not the two together.
Did you look and hover the mouse over those icons?
-
-
Question for the guys responding so far: Do you guys actually build any docker images from scratch using Dockerfiles?
-
Question for the guys responding so far: Do you guys actually build any docker images from scratch using Dockerfiles?
I forced myself to try it once, just so I could write that doc on the wiki and know what I'm talking about I don't like posting something I don't understand about. I have never done it again.
So don't ask me too much more, you probably know more than me about this.
-
Did you look and hover the mouse over those icons?
I thought you meant Docker not the plugin rye made.
-
-
Well, I don't see any containers being created when I use Build, just the image gets created.
And I don't see where pull comes in.
Maybe a better question would be what docker commands are being used here?
-
I thought you meant Docker not the plugin rye made.
I thought the thread tile was clear on that.
-
I thought the thread tile was clear on that.
Not really no. But I do now.
Services >> Compose >> Dockerfile
-
-
And I don't see where pull comes in.
I imagine your first Dockerfile command will be something like FROM and then you define an existing image.
For example FROM ubuntu
This will download the ubuntu image from the internet. That is the "pull". From there you will have other commands to modify that first image and go as far as you want to create your own.
-
Actually with Dockerfile you can't create an image from scratch, correct me if I'm wrong. Always parts of an existing image.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!