Blame
|
1 | # Docker commands |
||||||
| 2 | ||||||||
| 3 | Docker |
|||||||
| 4 | Description Command Line Function |
|||||||
| 5 | Install image X docker pull |
|||||||
| 6 | View all Docker images with image ID docker image ls |
|||||||
| 7 | Delete Docker image docker image rm |
|||||||
| 8 | Create a Docker container docker run |
|||||||
| 9 | Start a container docker start |
|||||||
| 10 | Stop a container docker stop |
|||||||
| 11 | Stop all containers docker stop $(docker ps -q) |
|||||||
| 12 | View all Docker containers docker container ls -a |
|||||||
| 13 | Delete a Docker container docker container rm |
|||||||
| 14 | Search an image docker search --no-trunc home-assistant |
|||||||
| 15 | Display logs of a container docker logs [container name] |
|||||||
| 16 | bash in a running container docker exec -it container_name bash |
|||||||
| 17 | Clean (all) docker images docker image prune -a |
|||||||
| 18 | Clean everything docker system prune --volumes |
|||||||
| 19 | ||||||||
| 20 | Docker compose |
|||||||
| 21 | Create container and start as a deamon docker compose up -d |
|||||||
| 22 | Create container and start (view log files) docker compose up |
|||||||
| 23 | Renew images docker compose pull |
|||||||
| 24 | ||||||||
| 25 | Bijwerken alle containers |
|||||||
| 26 | docker compose pull && docker compose up -d |
|||||||
| 27 | Command options overview and help |
|||||||
| 28 | You can also see this information by running docker-compose --help from the command line. |
|||||||
| 29 | Define and run multi-container applications with Docker. |
|||||||
| 30 | ||||||||
| 31 | Usage: |
|||||||
| 32 | docker-compose [-f <arg>...] [options] [COMMAND] [ARGS...] |
|||||||
| 33 | docker-compose -h|--help |
|||||||
| 34 | ||||||||
| 35 | Options: |
|||||||
| 36 | -f, --file FILE Specify an alternate compose file |
|||||||
| 37 | (default: docker-compose.yml) |
|||||||
| 38 | -p, --project-name NAME Specify an alternate project name |
|||||||
| 39 | (default: directory name) |
|||||||
| 40 | --verbose Show more output |
|||||||
| 41 | --log-level LEVEL Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) |
|||||||
| 42 | --no-ansi Do not print ANSI control characters |
|||||||
| 43 | -v, --version Print version and exit |
|||||||
| 44 | -H, --host HOST Daemon socket to connect to |
|||||||
| 45 | ||||||||
| 46 | --tls Use TLS; implied by --tlsverify |
|||||||
| 47 | --tlscacert CA_PATH Trust certs signed only by this CA |
|||||||
| 48 | --tlscert CLIENT_CERT_PATH Path to TLS certificate file |
|||||||
| 49 | --tlskey TLS_KEY_PATH Path to TLS key file |
|||||||
| 50 | --tlsverify Use TLS and verify the remote |
|||||||
| 51 | --skip-hostname-check Don't check the daemon's hostname against the |
|||||||
| 52 | name specified in the client certificate |
|||||||
| 53 | --project-directory PATH Specify an alternate working directory |
|||||||
| 54 | (default: the path of the Compose file) |
|||||||
| 55 | --compatibility If set, Compose will attempt to convert deploy |
|||||||
| 56 | keys in v3 files to their non-Swarm equivalent |
|||||||
| 57 | ||||||||
| 58 | Commands: |
|||||||
| 59 | build Build or rebuild services |
|||||||
| 60 | bundle Generate a Docker bundle from the Compose file |
|||||||
| 61 | config Validate and view the Compose file |
|||||||
| 62 | create Create services |
|||||||
| 63 | down Stop and remove containers, networks, images, and volumes |
|||||||
| 64 | events Receive real time events from containers |
|||||||
| 65 | exec Execute a command in a running container |
|||||||
| 66 | help Get help on a command |
|||||||
| 67 | images List images |
|||||||
| 68 | kill Kill containers |
|||||||
| 69 | logs View output from containers |
|||||||
| 70 | pause Pause services |
|||||||
| 71 | port Print the public port for a port binding |
|||||||
| 72 | ps List containers |
|||||||
| 73 | pull Pull service images |
|||||||
| 74 | push Push service images |
|||||||
| 75 | restart Restart services |
|||||||
| 76 | rm Remove stopped containers |
|||||||
| 77 | run Run a one-off command |
|||||||
| 78 | scale Set number of containers for a service |
|||||||
| 79 | start Start services |
|||||||
| 80 | stop Stop services |
|||||||
| 81 | top Display the running processes |
|||||||
| 82 | unpause Unpause services |
|||||||
| 83 | up Create and start containers |
|||||||
| 84 | version Show the Docker-Compose version information |
|||||||
| 85 | ||||||||
| 86 | ||||||||
| 87 | Docker containers updaten |
|||||||
| 88 | Overview of running containers |
|||||||
| 89 | docker ps |
|||||||
| 90 | dan in directory van compose file |
|||||||
| 91 | docker compose pull && docker compose up -d |
|||||||
| 92 | docker system prune --volumes |
|||||||
