Skip to content

load image does not preload image - no such file or directory #2068

Closed

Description

@drahnr

load_image fails to load image

The error code message is: open fedora-preload/image: no such file or directory (which is true)

I followed the answer/guide on stackoverflow

  • Concourse version: 3.9.1
  • Deployment type (BOSH/Docker/binary): binary
  • Infrastructure/IaaS: custom / CoreOS / Fedora
  • Browser (if applicable): Firefox
    $ fly -t example hijack -j dummy/build-fedora-native -s container-fedora-native
    # cd fedora-preload
    # ls -1
    digest
    docker_inspect.json
    image-id
    metadata.json
    repository
    rootfs
    tag

Fails with file not found

The snippet defining the procedure:

resources:
# // ** snip ** \\
- name: container-fedora
  type: docker-image
  source:
    repository: fedora
    max_concurrent_downloads: 1
    max_concurrent_uploads: 1

- name: fedora-preload
  type: docker-image
  source:
    repository: fedora

jobs:
  - name: build-fedora-native
    plan:
    - get: ci
      resource: git-ci
      trigger: true

    - get: fedora-preload
    - put: container-fedora-native
      params:
        load_base: fedora-preload
        build: copycat
        tag_as_latest: true

    - task: composition
      image: container-doc
      config:
        platform: linux
        inputs:
        - name: ci
        outputs:
        - name: copycat
        run:
          path: sh
          args:
          - -exc
          - |
            cp -rfv ci/container/fedora ./copycat/
            cp -rfv ci/container/fedora/native/Dockerfile ./copycat/
            cp -rfv ci/container/*.sh ./copycat/

Any idea what is wrong?

The image itself does not contain a directory called image , only rootfs and image-id exist.

Activity

  1. changed the title [-]load image does not - missing image[/-] [+]load image does not preload image - no such file or directory[/+] on Mar 3, 2018
  2. pn-santos commented on Mar 5, 2018

    @pn-santos

    Missing the "save" param in:

    - get: fedora-preload
      params: { save: true }
    

    By default the image isn't saved to disk, only it's metadata (as you can see from the ls you did, there is no image dir)

  3. drahnr commented on Mar 5, 2018

    @drahnr
    ContributorAuthor

    I guess this should be part of the preload flag documentation that it needs the save flag - I totally missed that (was in the comments on SO but not in the actual answer provided..).

    Testing and going to report back.

  4. vito commented on Jan 3, 2019

    @vito
    Contributor

    This looks more like a support request than a feature or bug, so I'm going to close it out - hope you figured things out anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions