How do I attach a volume to a running container starting from the Docker Run command?

2k Views Asked by At

I need to attach a volume to the running container which has started from the docker run command on my AWS EC2 server (Ubuntu 18.04 LTS) with the following command

$ docker run --name example -p 8080:80 -dt example-image:latest

I'm using Docker version 19.03.12.

0

There are 0 best solutions below