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 configure IP for docker container
- The method to configure the IP for the docker container is: 1. Check the network mode; 2. Create a custom network; 3. Check the network information; 4. Create the container and specify the container IP, and select any IP address in the custom network segment as the target. Start the IP of the container; 5. Run the container.
- Docker 4442 2020-05-20 13:14:03
-
- Can docker build a local mirror warehouse?
- Docker can build a local image warehouse. The specific method is: 1. Pull the image and create a local image warehouse storage path; 2. Start the container; 3. Push the local image to the local image warehouse; 4. Verify whether the push to the local image warehouse is successful.
- Docker 2799 2020-05-20 11:49:23
-
- How docker clears stopped containers
- How docker clears stopped containers: 1. Execute the [docker ps] command to filter out the containers in the Exited state and retrieve the container ID; 2. Execute the [docker rm] command to delete the containers in the Exited state.
- Docker 3696 2020-05-20 11:34:24
-
- What to do if the docker service cannot be restarted
- The solution to the failure to restart the docker service is: 1. Delete the docker installation package and download it again; 2. Edit the docker.sh configuration file and configure DOCKER_HOST; 3. Edit the startup file and configure the ExecStart option; 4. Restart the docker service.
- Docker 3867 2020-05-20 11:13:29
-
- How docker configures jdk environment variables
- The method for docker to configure jdk environment variables is: 1. Edit the [.bashrc] file and add the configuration [export JAVA_HOME=/opt/jdk] in the file; 2. Execute the [source ~/.bashrc] command to make the environment variables take effect. .
- Docker 4926 2020-05-20 10:59:57
-
- What should I do if the docker container has Chinese garbled characters?
- The solution to the Chinese garbled characters in the docker container is: 1. Execute the [locale -a] command to view the language environment of the container; 2. Edit the Dockerfile file and add the configuration [ENY LANG C.UTF-8] to the file.
- Docker 3955 2020-05-20 10:41:59
-
- How docker accesses the Internet through a proxy
- The method for docker to access the Internet through a proxy is: 1. Edit the /usr/lib/systemd/system/docker.service file and add the configuration [Environment="HTTP_PROXY=proxy url"]; 2. Restart the docker.service service.
- Docker 3734 2020-05-20 10:28:32
-
- How docker replaces domestic warehouse
- The method for docker to change the domestic warehouse is: 1. Execute the [docker pull] command to change the pull address to the domestic mirror warehouse; 2. Edit the /etc/docker/daemon.json file and add the registry-mirrors key value.
- Docker 4223 2020-05-20 10:14:11
-
- How to uninstall docker
- The method to uninstall docker is: 1. Execute the [yum list] command to view the installed packages of docker; 2. Execute the [yum remove] command to delete the installed packages; 3. Execute the [rm -rf /var/lib/docker] command Delete docker.
- Docker 3902 2020-05-20 10:02:20
-
- How does the host host access the docker service in the virtual machine?
- How the host host accesses the docker service in the virtual machine: 1. Enter the virtual machine where the docker service is located; 2. Click [Settings], [Network], and select the NAT network card; 3. Click [Advanced] and select [Port Forwarding] ;4. Add port forwarding rules.
- Docker 4962 2020-05-20 09:52:11
-
- What systems can be run in docker
- Currently, only Linux systems can be run in docker. If we want to use docker on windows environment and mac environment, then we also need to rely on virtualbox to implement the basic system. FreeBSD can already run Docker natively, but it also requires a Linux simulation layer.
- Docker 5584 2020-05-20 09:41:23
-
- How to completely uninstall docker
- The method to completely uninstall docker is: 1. Execute the [yum list] command to view the installed packages; 2. Execute the [yum remove] command to delete the installation package; 3. Execute the [rm -rf /var/lib/docker] command to delete docker .
- Docker 9886 2020-05-19 14:28:24
-
- How to check the container version in docker
- The way docker checks the container version is: You can use the cat command to check it. The specific command is [cat /etc/issue]. The cat command is used to concatenate files and print to the standard output device.
- Docker 8431 2020-05-19 14:12:29
-
- How to view docker logs
- The method to view the docker log is: You can use the [docker logs] command to view the docker log. The specific command is such as [$docker logs --since 30m CONTAINER_ID], which means to view the logs of the last 30 minutes.
- Docker 5663 2020-05-19 13:54:04
-
- How to download image in docker
- The method to download the image in docker is: you can use the [docker pull] command to download the image. The specific command is such as [docker pull learn/tutorial], which means downloading the tutorial image.
- Docker 4308 2020-05-19 13:38:48