Access files own container


Recommended Posts

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.

image.png.7f705e95f27d37c9cb726a335533a367.png

 

Thanks.

Edited by Vitor Ventura
Link to comment

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)

Link to comment
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.

image.png.23e1baf33cd00850f246c2a60b9ba2d7.png

image.thumb.png.9bee0f458c2c4cbeccc659bc80746b4e.png

 

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.

image.thumb.png.5d69faee5302a0c66c53797f7761108a.png

 

Thanks.

Edited by Vitor Ventura
Link to comment
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.

  • Thanks 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.