keep changes in the container for later use #2648
-
Hello everyone, I cannot save my changes in docker containers when I run them with rocker. It always creates a new container with a different id. I need to enter the same container to be able to reach my previous installed libraries, folders etc. I made followings for this purpose: I want to use Autoware Universe and followed the instructions on the website.
It says successfully built 72c229086e34. The output of 'docker container ls' is: Then I built the scenario simulator in the container (aw-universe). The prompt in the terminal is koray@72c229086e34 and I can run the simulation without problem. When I exit from the container (aw-universe) and then enter it with the command 'docker start aw-universe', there is this error: Since I couldn't enter the container, I tried to generate a new image from the container using the command When I create a new container using aw-universe-i:
it says successfully built fbc79a0e2e3f. However, the prompt in the terminal is bash-5.0 now, which is supposed to be koray@fbc79a0e2e3f. And when I try to run the simulation, it says PermissionError: [Errno 13] Permission denied: '/home/koray/.ros' My question is: How can I keep the changes in the container properly to use them later, or how can I start the saved container, which is generated with rocker?. Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Did you try to add |
Beta Was this translation helpful? Give feedback.
-
@koraykoca
To do this, we have to either:
I personally would like to avoid this option because the dependency will increase and it makes maintenance difficult.
I guess you can use this image. (The documentation should be updated to support Docker.) @WJaworskiRobotec @hakuturu583 What do you think about this option?
Please refer to the example of |
Beta Was this translation helpful? Give feedback.
@koraykoca
I believe it is generally not recommended that you edit/commit a Docker container.
Instead, you have to provided containers as they are.
Considering your changes with the Docker image, there are several ways to resolve this.
autoware-universe
image.To do this, we have to either:
amd64
.I personally would like to avoid this option because the dependency will increase and it makes maintenance difficult.
I guess you can use this image.
In this case, you don't have to bui…