Skip to content

Php 7.2 / Apache / Mailhog / Adminer / MariaDb / Mongo Db / Portainer

Notifications You must be signed in to change notification settings

acn-ama/docker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-example

Php 7.2 / Apache / Mailhog / MariaDb / Mongo Db / Portainer.

Docker example project by GiandoG17

Useful links

What are we going to create?

Commands

List containers

docker ps

Restart one or more containers

docker restart <container>

Stop running container without removing them.

docker stop <container>

Remove one or more containers

  • -f = force
docker rm <container>

Run a command in a running container

docker exec -ti <container> bash

List images

docker image ls

Builds, (re)creates, starts, and attaches to containers for a service.

  • --build = Build images before starting containers.
  • -d = Detached mode: Run containers in the background, print new container names
docker-compose up

Stops containers and removes containers, networks, volumes, and images created by up.

docker-compose down

Be careful

There are many useful commands to better manage your containers, visit the links above to view the official docker documentation.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

Php 7.2 / Apache / Mailhog / Adminer / MariaDb / Mongo Db / Portainer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published