Why Jenkins not stored data?

I try to configure Jenkins at Unubtu 16.04:

docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins

Then, i see at logs:

  • Unable to form Hazelcast cluser on a multinode docker environment
  • How to run built Docker image made by docker-compose?
  • VSTS Docker Integration fails to install
  • Only receiving MQTT messages in interactive mode within a docker container
  • Running docker build with an apt proxy
  • Docker Machine: No space left on device
  • Attempting to dynamic load /var/jenkins_home/plugins/workflow-aggregator.jpi
    Started initialization
    Listed all plugins
    Prepared all plugins
    Started all plugins
    Augmented all extensions
    Loaded all jobs
    Completed initialization
    Plugin workflow-aggregator:2.3 dynamically installed

    But, at /var/jenkins_home i cound not found any file.

    What should i do to solve this?
    Thank you!

  • postgres does not start. (involves Django and Docker)
  • Sci-kit SVC: random_state producing different results on mac and my docker image
  • access mysql with kubernetes : access denied for user root
  • Docker - Running watchify inside container does not work
  • docker-compose referencing wrong ports
  • Docker maximum offline containers
  • 2 Solutions collect form web for “Why Jenkins not stored data?”

    You have to ensure that /your/home is accessible by the jenkins user.

    ls -la /your/home

    You can create a jenkins user with uid 1000 and then grant its ownership.

    groupadd -g 1000 jenkins
    useradd -d "/your/home" -u 1000 -g 1000 -m -s /bin/bash jenkins

    Check for files in /your/home.

    The path /var/jenkins_home is only valid inside the container, and maps to /your/home on your host.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.