Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #41227
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Closed
Open
Created Dec 18, 2017 by Teresa e Junior@teresaejuniorContributor

Docker volumes not mounted when using docker:dind

Summary

Docker volumes not mounted when using docker:dind

Steps to reproduce

With the following .gitlab-ci.yml file, the Docker command should return test_file, showing that the /mnt directory was mounted successfully. It returns nothing.

image: docker:latest
services:
  - docker:dind

stages:
  - test

docker:
  stage: test
  script:
    - touch /mnt/test_file
    - docker run -v /mnt:/mnt ubuntu ls /mnt

The Docker image gitlab/dind works, but it is based on jpetazzo/dind, which is obsolete and based on the very old Ubuntu Trusty (from 2014). So mounting the volumes work, but many other things that depend on newer technologies fail.

Example Project

In the following sample project, I'm using the shared CI runners, but other people from #gitlab on freenode tested it with private runners, and have the same problem.

https://gitlab.com/teresaejunior/my-awesome-project/blob/master/.gitlab-ci.yml

Relevant logs and/or screenshots

https://gitlab.com/teresaejunior/my-awesome-project/-/jobs/44977716

Output of checks

This bug happens on GitLab.com (but also on private runners, as shown by other users).

Edited Dec 18, 2017 by Teresa e Junior
Assignee
Assign to
Time tracking