cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
850
Views
5
Helpful
1
Replies

Catalyst 9300 app-hosting - docker persistant data?

dal
Level 3
Level 3

Hi.

I'm trying to deploy a docker container on a Catalyst 9300 switch, via CLI.

Nginx Proxy Manager to be presise: https://github.com/jlesage/docker-nginx-proxy-manager 

The docker run parameter for storage is

-v /docker/appdata/nginx-proxy-manager:/config:rw \
    jlesage/nginx-proxy-manager

 How do i translate this line into permanent persistent storage?

I have tried several iterations of this:

run-opts 1 "-v $(APP_DATA)/nginx-proxy-manager:/nginx-proxy-manager"	
run-opts 1 "-v $(APP_DATA)/nginx-proxy-manager:/config:rw \jlesage/nginx-proxy-manager"
run-opts 1 "-v $(APP_DATA)/nginx-proxy-manager:/config:rw\jlesage/nginx-proxy-manager"

The application starts just fine, and I can see (via the IOX web page on the switch) that folders and subfolders are created, but empty.

And as soon as I run app-hosting stop / deactivate / activate / start, all configuration is gone.

Where exactly is the data stored, and how to make is persistent?

Thanks

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

Do you have any USB ?

 

check this video and steps :

 

https://github.com/jeremycohoe/c9k-wireshark    ( check persist-disk)

 

https://www.youtube.com/watch?v=m9iXvXrWZgE

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help