Giter Club home page Giter Club logo

Comments (5)

br2490 avatar br2490 commented on June 23, 2024

docker has a copy command you can use to retrieve and push files to containers! I find this makes editing larger docs easier.

docker ps to grab the name of the container (isle-web, isle-solr, isle-fedora, isle-db are our options)

to get a file docker cp isle-web:/etc/apache2/sites-available/sites.conf ~/Desktop/site.conf
to push a file docker cp ~/Desktop/sites.conf isle-web:/etc/apache2/sites-available/site.conf

edited: never edit the file in sites-enabled! also this will only work for some files.

from isle.

McFateM avatar McFateM commented on June 23, 2024

Thanks Ben. I think settings.php is one of those files that it does not work on? I tried this...

ma7053:ISLE markmcfate$ docker cp isle-web:/var/www/html/sites/default/settings.php ~/Desktop/settings.php
ma7053:ISLE markmcfate$ docker cp ~/Desktop/settings.php isle-web:/var/www/html/sites/default/settings.php

I was able to easily edit the file in between 'docker cp' commands but got this when I tried to write the file back...

Error response from daemon: Error processing tar file(exit status 1): remove /settings.php: device or resource busy

Made me wonder if Atom might have a Docker package to assist with this. Didn't find exactly this but there are some Atom goodies out there that I might look at later.

from isle.

br2490 avatar br2490 commented on June 23, 2024

@McFateM Dangit! I'm Sorry. So much for that work around - interesting that file is WO. Right?

Are you able to: docker exec -it isle-<whatever> bash and then apt update; apt install nano -y? Ubuntu should automatically change you editor choice to nano, but if not and you would like to make sure: update-alternatives โ€“config editor

from isle.

McFateM avatar McFateM commented on June 23, 2024

Good morning @br2490. Yes, I was able to open a bash shell and add nano in.

from isle.

g7morris avatar g7morris commented on June 23, 2024

@McFateM A reasonable request for the web image/container. Added nano to installed tools. (via this commit) Closing ticket.

from isle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.