Why jobs and system config were lost when run an image commited from a running jenkins container?

leo

I started a jenkins container from the official jenkins image and added some plugins like git. Also, I made some basic configurations like authentication settings and user registration, then I added a jenkins job and it worked quite well in the running jenkins container. Question is when I commited this jenkins container as a new version of jenkins image and re-ran the new image, everything was lost: no plugins added, no user registered, no jenkins job created. Does anyone can help me to make a new jenkins image with all my configurations added? Thank you all.

Regards, yuliang

ZEE

you have to backup your data before rerun jenkins image:

docker cp jenkins-dv:/var/jenkins_home /tmp/jenkins-backup

also you can check this very helpful tutoriel DOCKER & JENKINS: DATA THAT PERSISTS explain HOST MOUNTED VOLUMES and DATA VOLUME CONTAINERS

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Best way to have Jenkins "update" a running docker container when the image has been updated

From Dev

Change Jenkins from running as windows service to CLI, while remaining the jobs

From Dev

Why this error occurs 'You must run the container in the host namespace when running privileged mode'?

From Dev

How to run Docker inside Jenkins which is running as container

From Dev

Run docker container on Linux VM which is running on Linux host system

From Dev

Docker run container from dockerfile image error

From Dev

Why the transparency of a PNG image is lost when I use TPicture?

From Dev

Upgrade of Jenkins from UI when running as war

From Java

AWS ECS Error when running task: No Container Instances were found in your cluster

From Dev

How to fail Jenkins build if no tests were run?

From Dev

Docker cannot run on build when running container with a different user

From Dev

When running "go test", is there a way to get a count of how many tests were run?

From Dev

Are 2 jobs running in pipeline of jenkins thread safe?

From Dev

Jenkins running multiple xcode jobs with simulator?

From Dev

Removing old jobs from Jenkins

From Dev

Why docker build image from docker file will create container when build exit incorrectly?

From Dev

Parameter interpretation when running jobs

From Dev

Why are all styles lost when the js snippet is executed from a bookmark?

From Dev

Connect to a container running in Docker (Redis) from Cloud Run Emulator locally

From Dev

Connect to a container running in Docker (Redis) from Cloud Run Emulator locally

From Dev

make bash run a command from inside a function while running a container

From Dev

JENKINS Builds run parallel and Sequential jobs

From Dev

Run certain Jenkins jobs alone on a node

From Dev

Why is there no logs using "docker run image command" to start container?

From Dev

Why is there no logs using "docker run image command" to start container?

From Dev

Why were JUnit Jupiter and JUnit Vintage separated When I Running TestCase in IntelliJ?

From Dev

My tests were running and then I clicked "Run as --> Maven clean" and now when I click "Run as --> Maven test" it doesn't work anymore

From Java

Run a Docker image as a container

From Dev

user specific jobs vs system jobs running as specific users

Related Related

  1. 1

    Best way to have Jenkins "update" a running docker container when the image has been updated

  2. 2

    Change Jenkins from running as windows service to CLI, while remaining the jobs

  3. 3

    Why this error occurs 'You must run the container in the host namespace when running privileged mode'?

  4. 4

    How to run Docker inside Jenkins which is running as container

  5. 5

    Run docker container on Linux VM which is running on Linux host system

  6. 6

    Docker run container from dockerfile image error

  7. 7

    Why the transparency of a PNG image is lost when I use TPicture?

  8. 8

    Upgrade of Jenkins from UI when running as war

  9. 9

    AWS ECS Error when running task: No Container Instances were found in your cluster

  10. 10

    How to fail Jenkins build if no tests were run?

  11. 11

    Docker cannot run on build when running container with a different user

  12. 12

    When running "go test", is there a way to get a count of how many tests were run?

  13. 13

    Are 2 jobs running in pipeline of jenkins thread safe?

  14. 14

    Jenkins running multiple xcode jobs with simulator?

  15. 15

    Removing old jobs from Jenkins

  16. 16

    Why docker build image from docker file will create container when build exit incorrectly?

  17. 17

    Parameter interpretation when running jobs

  18. 18

    Why are all styles lost when the js snippet is executed from a bookmark?

  19. 19

    Connect to a container running in Docker (Redis) from Cloud Run Emulator locally

  20. 20

    Connect to a container running in Docker (Redis) from Cloud Run Emulator locally

  21. 21

    make bash run a command from inside a function while running a container

  22. 22

    JENKINS Builds run parallel and Sequential jobs

  23. 23

    Run certain Jenkins jobs alone on a node

  24. 24

    Why is there no logs using "docker run image command" to start container?

  25. 25

    Why is there no logs using "docker run image command" to start container?

  26. 26

    Why were JUnit Jupiter and JUnit Vintage separated When I Running TestCase in IntelliJ?

  27. 27

    My tests were running and then I clicked "Run as --> Maven clean" and now when I click "Run as --> Maven test" it doesn't work anymore

  28. 28

    Run a Docker image as a container

  29. 29

    user specific jobs vs system jobs running as specific users

HotTag

Archive