Armadilloフォーラム

podman commit で変更内容が保存されない

urasue

2024年1月25日 21時49分

お世話になっております。

podman commitでイメージの保存をしたのですが、再起動すると変更結果が消えてしまいます。

armadillo:~# podman images
REPOSITORY                 TAG         IMAGE ID      CREATED       SIZE        R/O
localhost/at-debian-image  latest      176808c8750d  3 months ago  1.09 GB     true
armadillo:~# podman commit mainte localhost/at-debian-image
Getting image source signatures
Copying blob e3a758e11e14 skipped: already exists
Copying blob cccdcb055012 skipped: already exists
Copying blob 8a21489e5461 skipped: already exists
Copying blob 2788c38011c7 skipped: already exists
Copying blob 1398063fdac5 skipped: already exists
Copying blob 9cc1a9516b6e skipped: already exists
Copying blob dd74886897d5 skipped: already exists
Copying blob 82dd0f93445f skipped: already exists
Copying blob 029381e5c766 skipped: already exists
Copying blob 0c76d3aef27d done
Copying config ae4a13406a done
Writing manifest to image destination
Storing signatures
ae4a13406af6958059d7764ff3fe23a0eaf974944ee577fdb0181736a5d4d8c2
armadillo:~# podman images
REPOSITORY                 TAG         IMAGE ID      CREATED        SIZE        R/O
localhost/at-debian-image  latest      ae4a13406af6  8 seconds ago  1.1 GB      false
localhost/at-debian-image  latest      176808c8750d  3 months ago   1.09 GB     true
armadillo:~#

再起動すると、IMAGE ID ae4a13406af6 が消えてしまいます。
何か設定が必要でしょうか。

コメント

at_shinya.koga

2024年1月26日 6時49分

アットマークテクノの古賀です。

urasueさん;
>podman commitでイメージの保存をしたのですが、再起動すると変更結果が消えてしまいます。
>

armadillo:~# podman images
REPOSITORY                 TAG         IMAGE ID      CREATED       SIZE        R/O
localhost/at-debian-image  latest      176808c8750d  3 months ago  1.09 GB     true
armadillo:~# podman commit mainte localhost/at-debian-image
...
armadillo:~# podman images
REPOSITORY                 TAG         IMAGE ID      CREATED        SIZE        R/O
localhost/at-debian-image  latest      ae4a13406af6  8 seconds ago  1.1 GB      false
localhost/at-debian-image  latest      176808c8750d  3 months ago   1.09 GB     true
armadillo:~#

>
>再起動すると、IMAGE ID ae4a13406af6 が消えてしまいます。
>何か設定が必要でしょうか。

マニュアルの「コンテナの基本的な動作」にある「イメージを eMMC に保存する」で説明しているように、'abos-ctrl podman-storage --disk' コマンドを実行して、書き込み先を tmpfs から eMMC に変えて、その後で commit してみてください:
 https://manual.atmark-techno.com/armadillo-x2/armadillo-x2_product_manu…
 https://manual.atmark-techno.com/armadillo-x2/armadillo-x2_product_manu…

urasue

2024年1月30日 9時45分

古賀様

ありがとうございます。
書き込み先がtmpfsとなっておりました。