current location:Home > Technical Articles > Operation and Maintenance > Docker
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to view files in docker
- How to view files with docker: 1. Use the "docker attach ContainerID" command to view running container files. 2. Use the "docker cp <container name>:<path><host path>" command to copy the file to the host for viewing.
- Docker 8079 2020-04-03 11:02:14
-
- What is the function of cgroup in docker
- The main functions of cgroup in docker: 1. Resource Limitation (ResourceLimitation). 2. Prioritization. 3. Resource statistics (Accounting). 4. Process control (Control).
- Docker 7861 2020-04-03 10:51:03
-
- Does docker support gpu?
- Docker supports GPU, and docker can use GPU through nvidia-docker2. Configure the runtime to use nvidia in the daemon.json file. After starting the container, run nvidia-smi to see all GPUs.
- Docker 3006 2020-04-03 09:02:33
-
- How to access different docker containers
- Access methods between different containers in docker: 1. Use container IP to achieve mutual access. 2. Create a bridge network, connect several docker containers to the created network, and then the containers can be directly accessed.
- Docker 2583 2020-04-02 15:53:52
-
- The difference between docker images and containers
- The difference between a docker image and a container: a docker image is a read-only template, an independent file system, including the data required to run the container. A docker container is a running instance created by a docker image.
- Docker 6326 2020-04-02 15:06:14
-
- In what areas can docker be applied?
- Some application scenarios of docker: 1. Simplify configuration. 2. Code pipeline management. 3. Improve development efficiency. 4. Isolation application. 5. Integrate servers. 6. Debugging ability. 7. Multi-tenant environment. 8. Rapid deployment.
- Docker 10465 2020-04-02 14:55:50
-
- How to find containers in docker
- You can use the "docker ps" command to find containers in docker. Use the "docker ps -a" command to list all containers, including those that are not running.
- Docker 5513 2020-04-02 14:48:42
-
- Where are the logs after the docker container is started?
- After docker is started, the path where the log is located is "/var/lib/docker/containers/container ID/container ID-json.log". We can also directly use the "docker logs <container ID>" command to view the logs.
- Docker 6982 2020-04-02 14:32:40
-
- Can't docker be installed on windows?
- docker can be installed on windows. Win7, win8, etc. need to be installed using docker toolbox. Now Docker has a special installation package for Win10 professional version system, which requires turning on Hyper-V.
- Docker 7344 2020-04-02 13:25:12
-
- What can docker isolate?
- Docker can isolate the file system, network, inter-process communication, users and user groups, PID within the process and PID in the host. Docker's isolation mainly uses Namespace technology.
- Docker 3905 2020-04-02 12:00:21
-
- How to compress docker image
- Docker image compression method: 1. Use the docker export and docker import commands to compress the image. The image obtained after using export and import will not save the history of the image, so the image will become smaller. 2. Use docker-squash compression.
- Docker 5856 2020-04-02 11:47:25
-
- How to view files inside docker container
- You can use the docker exec <container name> ls command to view the files in the docker container. docker exec: Execute commands in a running container. The ls command is used to display the contents of the specified working directory.
- Docker 30327 2020-04-02 10:42:11
-
- Does docker use sandbox mechanism?
- Docker containers completely use the sandbox mechanism and do not have any interfaces with each other (similar to iPhone apps). More importantly, the container performance overhead is extremely low.
- Docker 4138 2020-04-02 09:24:11
-
- Which kernel feature does docker isolation feature rely on?
- The kernel feature that docker's isolation feature relies on is Namespaces. Namespace provides an isolation of system resources, including file systems, networks, processes, etc.
- Docker 3099 2020-04-01 15:58:47
-
- Where is the docker image file placed?
- The docker image file is stored in the /var/lib/docker folder. We can use the cd command to enter the containers under the /var/lib/docker folder to view the image in docker.
- Docker 13636 2020-04-01 15:48:34