When Docker is back in the background mode, re-enter the container

Source: Internet
Author: User
Tags docker ps

Use Docker ps-a to view the ID of the container, as shown below

[Root@localhost ~]# Docker PS

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

c5a5dd0a5448 Liushunqiu/nc_ubuntu "/bin/bash" 8 seconds ago up 7 seconds Determined_brown

64fc0c0fd2c7 Registry "/entrypoint.sh/etc/" hours ago up hours 0.0.0.0:80->5000/tcp registry_instance

Find the process Docker Inspect-f "{{. State.pid}} "c5a5dd0a5448 result is 25627

Nsenter--target 25627--mount--uts--ipc to enter the container

Submit mirror to private warehouse appears Http:server gave HTTP response to HTTPS client

modifying/usr/lib/systemd/system/docker.service files

Add--insecure-registry 192.168.1.103:5000 address to registry run after the Execstart=/usr/bin/docker tag

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.