Skip to main content

One post tagged with "mount"

View All Tags

docker modify config for running container

· One min read
  1. stop docker

    systemctl stop docker
  2. modify container's config

    $ cd /var/lib/docker/container/$containerID/

    $ vim config.v2.json

    # modify MountPoints

    $ vim hsotconfig.json

    # modify Binds
  3. start docker

    systemctl start docker
  4. start container

    docker start $containerID