Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I ran docker system prune, forgetting about a particular Postgres database whose contents I still wanted. (It also turns out the macOS Docker VM is not backed up by Time Machine, but that's another question.)
What I'd like to know is whether there is a possibility that the volume has been unlinked, but is still intact and recoverable inside the VM, or whether I should resign myself to recreating the database.
Use docker volume ls to find out which volumes remain/exist. If you used docker system prune without --volumes key, it should be there. Creating a postgres container with this volume should bring your database back.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed last year.
Improve this question
I would like to know what docker command can be used to display the Swap and Disk Image Size allotment from the command line.
I already tried docker system info and docker system df, but none display the Disk Image Size and Swap allotments.
Ideally, what I want to be able to see is the following:
Docker Desktop Resource Allotment
docker system info gives me the first 2 lines, but I could not find a command that gives me the last 2 lines.
Thank you!
have you tried this?
docker ps -s
Two different columns relate to size.
size: the amount of data (on disk) that is used for the writable layer of each container.
virtual size: the amount of data used for the read-only image data used by the container plus the container’s writable layer size.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have an external docker registry and i want to use nexus to analyze my repo for vulnerabilities but i don't know how to do it. For example, my repo is located at my.repo.location and i have a login user/password to access it. Is it even possible.
You can first login to your nexus docker login my.repo.location -U myLogin
Then tag your image docker tag image:tag my.repo.location/image:tag
Then push the newly tagged image docker push my.repo.location/image:tag
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Is there a way to modify my docker daemon.json so containers start in privileged mode without requiring the run flag?
No, there's no option in the daemon.json file to do this. If you find the commands tedious to type or error prone, consider using a docker-compose.yml file to define how you want to run the container.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I am using oracle VirtualBox, my host is ubuntu 16 LTS and my machine is windows 7 ultimate 64bit. I'm trying to add some storage to my machine, but I couldn't find a way to expand the vdi file I currently use, so i tried to add another one, but the machine doesn't seems to recognize it.
Any suggestions?
It's not clear what you did to add a vdi file (a "disk") to your vm, nor what you did that you didn't see it where you expected. Adding a new vdi is the virtual equivilent of plugging in a new, unpartitioned, unformatted hard drive. In your Win7 vm, open control panel > admin tools > computer management > disk management. You should see a new disk waiting to be partitioned and formatted.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm new to docker. I just installed it and I have a question about this , it could be duplicated but I can't found a solution by searching all the forums.
Why it's better to use juste one service (apache, PHP, Mysql...) inside one container?
Because the whole point of Docker is to encapsulate a service within a single image, that you then clone to make instances of. You can clone multiple instances and trivially scale out an application - but it's rare that you need to clone every element of the application like that. It's much more useful to be able to widen your web tier, or your database tier separately.
But the major reason is - a container is an instance of an image. If you update your application, you need to build a new image. It's considerably more useful to be able to rebuild and restart subcomponents of the application, for all the reasons it's a nuisance to have to update your server to 'update'.