--docker use docker instead of podman (default: False)
时间: 2024-04-03 20:35:58 浏览: 205
`--docker`是cephadm命令的一个选项,它指示cephadm使用Docker而不是Podman来管理Ceph集群。默认情况下,cephadm使用Podman容器引擎来管理Ceph集群,但是如果你想使用Docker,可以使用`--docker`选项来指定。使用Docker容器引擎可以带来一些优点,例如更广泛的支持、更好的性能和更多的功能,但是也可能会带来一些缺点,例如安全性方面的问题。因此,您可以根据您的实际情况选择使用Podman还是Docker来管理Ceph集群。
相关问题
ubuntu docker bash: systemctl: command not found
The "systemctl" command is not available in Docker containers by default since it is a system-level command that requires systemd to be running. However, there are a few workarounds that you can use:
1. Use a Docker image that already has systemd installed, such as the "systemd" image from the Docker Hub.
2. Use the "service" command instead of "systemctl" to start or stop services. For example, instead of "systemctl start nginx", you can use "service nginx start".
3. Use a Docker image that has a different init system, such as OpenRC or SysVinit, which have their own service management commands.
4. If you really need to use systemd inside a Docker container, you can try running your container with the "--privileged" flag to give it more access to the host system. However, this is not recommended for security reasons and should only be used as a last resort.
docker log overlay
The Docker overlay network driver is designed to provide a scalable and flexible networking solution for Docker containers running on multiple hosts. The overlay network driver allows Docker containers to communicate with each other seamlessly, regardless of the host they are running on.
When using the overlay network driver, Docker logs are also handled differently than with other drivers. Docker logs from containers running on an overlay network are not automatically sent to the host's syslog daemon, as they are with the default bridge network driver. Instead, Docker logs are sent directly to the Docker daemon on the host where the container is running.
To view Docker logs for containers running on an overlay network, you can use the `docker logs` command followed by the container ID or name. For example, to view the logs for a container named `my-container` running on an overlay network named `my-overlay-network`, you would use the following command:
```
docker logs my-container
```
If you want to view the logs for a container running on a specific host in an overlay network, you can use the `docker logs` command with the `--tail` and `--follow` options, followed by the container ID or name and the hostname. For example, to view the logs for a container named `my-container` running on a host named `my-host` in an overlay network named `my-overlay-network`, you would use the following command:
```
docker logs --tail 100 --follow my-container@my-host
```
This command will display the last 100 lines of logs for the container and continue to follow new logs as they are generated.
阅读全文