dockerfile-maven-plugin configuration

1. docker installation

  All major websites have installation tutorials

  CentOS 7 is installed using yum as follows:

    # yum -y install docker-io

2. Enable remote access

  Add the configuration content to the /etc/default/docker file on the Docker environment machine: 

  DOCKER_OPTS=”-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375”

3. Restart docker

  service docker restart

4. Local machine configuration environment variables

  DOCKER_HOST=tcp://ip:2375 

  ip: the ip of your own machine

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324980842&siteId=291194637