The docker attach command links a local input, output, and error stream to a container. By default, it launches in a bash shell. To connect to a running container, enter the following:
sudo docker attach Container_Name
# To copy a file from the local file system to a container, use:
docker cp <src-path> <container>:<dest-path>
#To copy a file from the container to the local file system, use:
docker cp <container>:<src-path> <local-dest-path>
sudo docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Password_01' \
--name 'sql1-dev' -p 1401:1433 \
-v sql1data:/var/opt/mssql \
-d mcr.microsoft.com/mssql/server:2019-latest
docker run --name my-own-mysql -e MYSQL_ROOT_PASSWORD=Password_01 -d mysql:8.0.1
docker run --name my-own-phpmyadmin -d --link my-own-mysql:db -p 8081:80 phpmyadmin/phpmyadmin