181k views
0 votes
Can you use a container, edit it, and update it? Also, how do you make it a new and store it on the local system?

User Offset
by
7.4k points

1 Answer

3 votes

Final answer:

Yes, you can use a container, edit it, and update it by accessing its shell and making changes. Containers can be stored on the local system by exporting them as compressed archives.

Step-by-step explanation:

Yes, you can use a container and edit its contents. Containers provide a way to isolate applications and their dependencies, making it easier to manage and deploy software across different environments. To edit a container, you can use commands like 'docker exec' to access the container's shell and make changes.

To update a container, you can either stop and remove the existing container and then create a new one with the updated content, or you can use version control systems like Git to track changes and update the container accordingly.

To store a container on the local system, you can use the 'docker save' command to export the container as a compressed archive. This archive can then be stored on the local filesystem and later imported back using the 'docker load' command.

User Tam Borine
by
8.3k points