You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5 KiB

6 years ago
2 years ago
6 years ago
2 years ago
6 years ago
  1. # Docker
  2. ## Compose V2
  3. SeaweedFS now uses the `v2` syntax `docker compose`
  4. If you rely on using Docker Compose as docker-compose (with a hyphen), you can set up Compose V2 to act as a drop-in replacement of the previous docker-compose. Refer to the [Installing Compose](https://docs.docker.com/compose/install/) section for detailed instructions on upgrading.
  5. Confirm your system has docker compose v2 with a version check
  6. ```bash
  7. $ docker compose version
  8. Docker Compose version v2.10.2
  9. ```
  10. ## Try it out
  11. ```bash
  12. wget https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/docker/seaweedfs-compose.yml
  13. docker compose -f seaweedfs-compose.yml -p seaweedfs up
  14. ```
  15. ## Try latest tip
  16. ```bash
  17. wget https://raw.githubusercontent.com/seaweedfs/seaweedfs/master/docker/seaweedfs-dev-compose.yml
  18. docker compose -f seaweedfs-dev-compose.yml -p seaweedfs up
  19. ```
  20. ## Local Development
  21. ```bash
  22. cd $GOPATH/src/github.com/seaweedfs/seaweedfs/docker
  23. make
  24. ```
  25. ### S3 cmd
  26. list
  27. ```
  28. s3cmd --no-ssl --host=127.0.0.1:8333 ls s3://
  29. ```
  30. ## Build and push a multiarch build
  31. Make sure that `docker buildx` is supported (might be an experimental docker feature)
  32. ```bash
  33. BUILDER=$(docker buildx create --driver docker-container --use)
  34. docker buildx build --pull --push --platform linux/386,linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 . -t chrislusf/seaweedfs
  35. docker buildx stop $BUILDER
  36. ```
  37. ## Minio debugging
  38. ```
  39. mc config host add local http://127.0.0.1:9000 some_access_key1 some_secret_key1
  40. mc admin trace --all --verbose local
  41. ```