Score:0

Need to start docker-compose up for a container with ubuntu 22.04 without internet access

md flag

I have docker compose and I have already container with ubuntu 22.04 which includes Nodejs app. Now, while connecting to internet it runs successfully, but when there is no internet access it does not run. Question: How to disable the auto updates in ubuntu, so that when there is no internet access, it keeps using the existing packages and run the Node js successfully?

Thanks,

Simon Sudler avatar
us flag
Hello and welcome to askubunt. Are you sure, that Ubuntu auto-updates are your issue? Neither docker nor container in general require a internet connection - but if your nodejs app requires internet... than it wont work without it
dave_ag avatar
md flag
Yes, sure. The scenario is: the machine hosting docker & docker-compose was connecting to the internet, the docker-compose was running and starting the container normally. Now ,machine is disconnected, and the image which is already loaded in docker should be used without requesting internet. In docker-compose.yml file there is no image tag, but in DockerFile there is "FROM ubuntu:22.04". So what should be done in order to use the already registered image and do not request internet anymore? OR, Maybe there is some config in the ubuntu to stop requesting internet for auto updates??
Simon Sudler avatar
us flag
That is exactly what I don't understand: neither docker nor docker-compose are updating cached images. Its the opposite, e.g. you need the `--no-cache` and or `--pull` switch to force updates
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.