Vitor Ventura Posted January 2, 2022 Share Posted January 2, 2022 (edited) Hello, Create a container based in this topic, for Gunbot, but, i need access the files to update. How can i do it? Already added folder at start, but in appdata is always clean docker run -d -p 5000:5000 -v /mnt/user/appdata/gunbot:/gunthy-linux:rw --name gunbot gunbot Grateful to everyone that can help me. Thanks. Edited January 2, 2022 by Vitor Ventura Quote Link to comment
Squid Posted January 2, 2022 Share Posted January 2, 2022 The options in the drop down require (for everything except the basics) a template to be created via Add Container screen. Just translate that docker run command to be a template instead. You've got 1 port defined, 1 path defined and the repository Otherwise, you're going to do a docker exec -it gunbot /bin/bash (Although your screen shot implies instead of gunbot to use gunbotlast) Quote Link to comment
Vitor Ventura Posted January 2, 2022 Author Share Posted January 2, 2022 (edited) 10 hours ago, Squid said: The options in the drop down require (for everything except the basics) a template to be created via Add Container screen. Just translate that docker run command to be a template instead. You've got 1 port defined, 1 path defined and the repository Otherwise, you're going to do a docker exec -it gunbot /bin/bash (Although your screen shot implies instead of gunbot to use gunbotlast) Sorry, i dont know how to create a template. Installed a container via Community Apps, add the folder, and receive this message. With docker exec -it gunbot /bin/bash i can access inside the container, but, when i need to update the main file, how can i send the file? Sorry for the noob questions. Basically, i dont want to loose all data inside of gunbotlast, has all my configs, and profits, etc. Thanks. Edited January 2, 2022 by Vitor Ventura Quote Link to comment
Squid Posted January 2, 2022 Share Posted January 2, 2022 you have to copy it to a place the container has access to (/mnt/user/appdata/gunbot) Quote Link to comment
Vitor Ventura Posted January 2, 2022 Author Share Posted January 2, 2022 3 hours ago, Squid said: you have to copy it to a place the container has access to (/mnt/user/appdata/gunbot) That doesn't work, so, i made an archaic solution. I need to backup everything, so, create a script: docker cp gunbotlast:/gunthy_linux /mnt/user/appdata/gunbot/ First, this backup every data daily, if needed, and the same command to send the update file to the container. That work for me, isnt automatic, but... Thanks. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.