mirror of
https://github.com/containers/podman.git
synced 2025-11-30 18:18:18 +08:00
* Add BaseHostsFile to container configuration * Do not copy /etc/hosts file from host when creating a container using Docker API Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
6 lines
167 B
Bash
6 lines
167 B
Bash
if ! is_rootless; then
|
|
mount --bind $TEST_ROOTDIR/etc_hosts/hosts /etc/hosts
|
|
else
|
|
$PODMAN_BIN unshare mount --bind $TEST_ROOTDIR/etc_hosts/hosts /etc/hosts
|
|
fi
|