Tag: c

60 votes
19 answers
787 views
How does one remove a Docker image?

I'm running Docker under Vagrant under OS X 10.8.4 (Mountain Lion), and whenever I try to delete a saved

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
47 votes
27 answers
2.3K views
How to remove old and unused Docker images

When running Docker for a long time, there are a lot of images in system. How can I remove all unused Docker i

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
55 votes
29 answers
2.4K views
Where are Docker images stored on the host machine?

I managed to find the containers under directory /var/lib/docker/containers, but I can't find the images.

avatar
Elicia
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
2.9K views
How to list containers in Docker

avatar
Nidia
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
1.3K views
How do I pass environment variables to Docker containers?

I'm new to Docker, and it's unclear how to access an external database from a container. Is the best

avatar
Louetta
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
1.7K views
How to deal with persistent storage (e.g. databases) in Docker

How do people deal with persistent storage for your Docker containers? I am currently using this approach: bu

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
65 votes
28 answers
1.9K views
What is the difference between a Docker image and a container?

When using Docker, we start with a base image. We boot it up, create changes and those changes are saved in la

avatar
Brianne
0 1 0 9
asked 07 September, 2021
54 votes
9 answers
2.1K views
How to force Docker for a clean build of an image

I have build a Docker image from a Docker file using the below command. $ docker build -t u12_core -f u12_cor

avatar
Santiago
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
1.9K views
How to remove old Docker containers

This question is related to Should I be concerned about excess, non-running, Docker containers?. I'm won

avatar
Basil
0 1 0 9
asked 07 September, 2021
54 votes
26 answers
1.2K views
How do I get into a Docker container's shell?

I'm getting started working with Docker. I'm using the WordPress base image and docker-compose. I&a

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
923 views
How to get a Docker container's IP address from the host

Is there a command I can run to get the container's IP address right from the host after a new container

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
60 votes
16 answers
1.2K views
How to copy Docker images from one host to another without using a repository

How do I transfer a Docker image from one machine to another one without using a repository, no matter private

avatar
Denese
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
604 views
How to copy files from host to Docker container?

I am trying to build a backup and restore solution for the Docker containers that we work with. I have Docker

avatar
Dusty
0 1 0 9
asked 07 September, 2021
55 votes
17 answers
2.4K views
What is the difference between CMD and ENTRYPOINT in a Dockerfile?

In Dockerfiles there are two commands that look similar to me: CMD and ENTRYPOINT. But I guess that there is a

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
43 votes
30 answers
2.4K views
From inside of a Docker container, how do I connect to the localhost of the machine?

So I have a Nginx running inside a docker container, I have a mysql running on localhost, I want to connect to

avatar
Hilario
0 1 0 9
asked 07 September, 2021
61 votes
21 answers
2.9K views
Docker: Copying files from Docker container to host

I'm thinking of using Docker to build my dependencies on a Continuous Integration (CI) server, so that I

avatar
Percy
0 1 0 9
asked 07 September, 2021
57 votes
16 answers
592 views
What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile?

What is the difference between the COPY and ADD commands in a Dockerfile, and when would I use one over the ot

avatar
Hallie
0 1 0 9
asked 07 September, 2021
54 votes
21 answers
2.9K views
How is Docker different from a virtual machine?

I keep rereading the Docker documentation to try to understand the difference between Docker and a full VM. Ho

avatar
Cortez
0 1 0 9
asked 07 September, 2021
60 votes
8 answers
2.9K views
Create new user in MySQL and give it full access to one database

I want to create a new user in MySQL and give it full access only to one database, say dbTest, that I create w

avatar
Emilia
0 1 0 9
asked 07 September, 2021
60 votes
24 answers
584 views
Find duplicate records in MySQL

I want to pull out duplicate records in a MySQL Database. This can be done with: SELECT address, count(id) a

avatar
Emilia
0 1 0 9
asked 07 September, 2021