Technical work, should be praised and then see, form a habitCopy the code

Docker use tutorial related series of directories


1. Pull the mirror

Find the image for uI-for-docker

docker search ui-for-docker
Copy the code

 

Pull the mirror

docker pull docker.io/uifd/ui-for-docker
Copy the code

2. Run the image to generate a container

docker run -it -d --name docker-web -p 9000:9000 --privileged=true -v /var/run/docker.sock:/var/run/docker.sock 965940f98fa5
Copy the code

Open your browser http://:9000

3. Introduction to use of UI-for-Docker

It’s a pretty neat interface, so basically you know how to use it

Dashboard, which displays an overview of the containers you are running or stopped:

You can click on each container to see more details and other actions such as stop and restart

Provides some more views, such as listing all local Docker images

4. Analyze the advantages and disadvantages

advantages

Support container management

# Support mirror management

Docker is a container based on the Docker API.

# High stability

# Dynamic display displays the relationship between containers

# Container management, add port mapping, add system variables, mapping directory, etc

disadvantages

# No login authentication, because there is no login system, the current solution is to only open local access, or TLS to control permissions.

Failed to allocate container to user.

# Multiple hosts are not supported.

Swarm is not supported

# function less

Console commands are not supported

5, conclusion

Great for: individuals, startups, or small team studios

Reason: Simple and quick to use. Since there is no registration system, it is difficult to circulate in the company. Because of this, everyone can control.

 

6. Problems in the installation process

Dial Unix /var/run/docker.sock: connect: ‘permission denied

Solution:

sudo groupadd docker
sudo gpasswd -a root docker
Copy the code

Then remove the container, run it again, and you’re done

docker stop docker-web
docker rm docker-web
Copy the code

If your logged-in user has not yet joined the Docker user group, you can try restarting the machine. If you can restart the Docker container properly, there is no need to restart the server

systemctl restart docker.service
Copy the code

Hosted at: github.com/kevana/ui-f…