Home > other >  The docker commit the port after fixed how to change?
The docker commit the port after fixed how to change?

Time:09-24

I passed a dockerfile built a lamp environment, then introduced to CMS, finally run port 8894, and then commit into wp_3_0_4: lamp, now I pass the mirror to build a container: docker run - d - 8080 p: 80 - name test wp_3_0_4: lamp, results while running, but can't access, later will jump to port 8894,


But I put the docker container port and as you can with the docker run - d - p 8894:80 - name test wp_3_0_4: lamp

Excuse me: how can you change the fixed port? Also want to ask someone explain the cause of this?
  • Related