Skip to content

Instantly share code, notes, and snippets.

@orzklv
Last active March 25, 2023 10:51
Show Gist options
  • Save orzklv/895520d88981962a28210157cd4525f3 to your computer and use it in GitHub Desktop.
Save orzklv/895520d88981962a28210157cd4525f3 to your computer and use it in GitHub Desktop.
Using archlinux as docker container
#!/usr/bin/env bash
# In the current directory
cd "$(dirname "$0")"
# Create image of container
docker build -t testbox .
# Run the container indefinitely
docker run -d --privileged --name os os
# Enter the container
docker exec -it os bash
FROM archlinux:latest
CMD /sbin/init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment