How to change/modify container options (after docker run)


Follow these step
  1. stop docker service (service docker stop)
  2. cd to /var/lib/docker/containers/{container id}/
    You can use command docker inspect {container name} to see the container id
  3. modify config.v2.json or hostconfig.json
  4. start docker (service docker start)


Comments