Last active
March 25, 2023 10:51
-
-
Save orzklv/895520d88981962a28210157cd4525f3 to your computer and use it in GitHub Desktop.
Using archlinux as docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM archlinux:latest | |
CMD /sbin/init |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment