Skip to content

Commit 83d71b3

Browse files
epilysroypat
authored andcommitted
Use --load with "docker build"
If --load is not provided to "docker build" command, the image only remains in the local cache and is not available for use locally when doing "docker run rustvmm/dev:$VERSION" like the README suggests. Without this change using the image locally is not possible, the image does not show up when doing `docker image ls` and the tag is not found when doing `docker run <TAG>`. the `docker build` step prints this warning: "WARNING: No output specified with docker-container driver. Build result will only remain in the build cache." Signed-off-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
1 parent 9a237cd commit 83d71b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ build_tag(){
4848
build(){
4949
new_tag=$(build_tag)
5050
docker build -t "$new_tag" \
51+
--load \
5152
--build-arg GIT_BRANCH="${GIT_BRANCH}" \
5253
--build-arg GIT_COMMIT="${GIT_COMMIT}" \
5354
-f Dockerfile .

0 commit comments

Comments
 (0)