Detener apache2 de ubuntu sudo /etc/init.d/apache2 stop Ahora para entrar debemos escribir el siguiente comando, puedes usar el nombre que le pusiste a tu docker o también puedes usar el ID docker exec -i -t 665b4a1e17b6 /bin/bash # o en su caso poner el nombre Once you’re satisfied that your bulletin board container works correctly, delete it: docker container rm --force bb Now, let's launch a container in detached mode as shown below: $ docker run --name static-site -e AUTHOR= " Your Name " -d -P dockersamples/static-site e61d12292d69556eabe2a44c16cbd54486b2527e2ce4f95438e504afb7b02810 In the above command: -d will create a container with the process detached from our terminal -P will publish all the exposed container ports to random ports on the Docker host -e is how you pass environment variables to the container --name allows you to specify a container name AUTHOR is the environment variable name and Your Name is the val