Mastodon nerds help me out. Someone wants me to update a web site running in docker.
I have never used docker I am assuming I need to update the image that is running with the latest code?
Mastodon nerds help me out. Someone wants me to update a web site running in docker.
I have never used docker I am assuming I need to update the image that is running with the latest code?
@alex that looks good.
Is it really this bloody complicated?
Can't a brother just change some files?
@selzero yes.
You could use something like Swarmpit for that, if you wanted to.
(I thought of Portainer, but they shove ads at you now.)
@4bz oh this is good. I hope thats it
@selzero Is the container that hosts the website just out of date? Or do they want you to make changes to the existing website without pulling a newer version of the container?
I like using compose - so there's a yaml file with all the container build info
So if the container just needs to be updated:
In the folder with the compose.yaml
sudo docker-compose down
sudo docker-compose pull
sudo docker-compose up
The container is now uupdated
@mmeese this sounds interesting. I'm investigating myself. How do I find out if it's just mapped to local files?
@selzero Depends on how it is set up and what’s running in the docker container or containers. It is possible for example to have in the container just the apache/nginx and database, while the docroot with the website is a folder on the host mapped into the container. So you could in theory just change stuff in that mapped folder on the host. Or the whole lot is a custom build docker image.
Can you share some more information? Is there a docker-compare.yml and or a Dockerfile?
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.